function LoadFlash(url,wmode,w,h){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'"> ');
    document.write('<param name="movie" value="' + url + '">');
    document.write('<param name="quality" value="high"> ');
    document.write('<param name="wmode" value="'+wmode+'"> ');//transparent/opaque
    document.write('<param name="menu" value="false"> '); 
    document.write('<embed src="' + url + '" wmode="'+wmode+'"  quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed> ');
    document.write('</object> ');
}


function CheckSearchProducts() {
	if (document.getElementById("keyword").value=="" || document.getElementById("keyword").value=="Product Search") {
		alert("Please enter keyword!")
		document.getElementById("keyword").focus();
		return false;
	}
}

////////////////////////////////
var xmlHttp;
function createXMLHttpRequest() {
	try {
		xmlHttp = new XMLHttpRequest();
	} catch (trymicrosoft) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (othermicrosoft) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (failed) {
			}
		}
	}
}

function loadVerifyCode(){
	document.getElementById("VerifyCodeBox").innerHTML='<img src="js/vcode.php" id="VerifyCode_img" name="verifycodeimg"  border="0"  class="VerifyCodeBox" align="absmiddle" /> <a href="javascript:void(0)" onClick="reVerifyCode();"></a>';
}
function reVerifyCode(){
	document.getElementById("VerifyCode_img").src="js/vcode.php?"+Math.random();	
}

