//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
//var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
//var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
//var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

//we notice cusotmer delay of shipment and ask if he/she wants to proceed
function OrderQuestion() {
//this is normal, no notice
	return true;

//this is the notice
/*	var msg = "Due to some foreseeable resource shortage, " +
						 "we are sorry not able to ship out any products during August 13rd to 23rd " +
						 "2009. You can continue to order by pressing 'OK' button " +
						 "and we will keep your order in queue for later delivery. " +
						 "Or you can press 'Cancel' button to order later.";
	var r=confirm(msg);
	if (r==true)
	  {
	  return true;
	  }
	else
	  {
	  return false;
	  } */
}

function random_num_gen() {
	var randomnumber=Math.floor(Math.random()*1000000)

	return randomnumber;
}

//in contactus.html
function checkQuestion_contactus() {
if (document.forms.Question_contactus.elements['Email'].value.length == 0) {
    alert('Please enter a value for the "Your Email Address" field');
    return false;
}
if (document.forms.Question_contactus.elements['Name'].value.length == 0) {
    alert('Please enter a value for the "Your Name" field');
    return false;
}
if (document.forms.Question_contactus.elements['Question'].value.length == 0) {
    alert('Please enter a value for the "Question" field');
    return false;
}
//  return true;
	return false;
}
