function popup(url,name,wd,he) {
  window.open(url,name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width='+wd+',height='+he+',screenX=150,screenY=150,top=150,left=150')
}
function do_click(id){
	window.open("banner_redirect.php?id="+id);
}
function do_search(){
	var k=document.search.keyword.value
	if (k.length<5)
		alert('Sorry, the keyword is too short.');
	else
		document.search.submit();
}


function checkAmountAtInstantPayment(form){
	var testresults = true;
	var amount=form.amount.value;
	var str1=form.item_name.value;
	
	if (str1 != "")
		testresults=true;
	else{
		alert("Please input Order Number!")
		return false;
	}
	
	if (amount != "")
		testresults=true;
	else{
		alert("Please input Amount!");
		return false;
	}


	var reggy =  '/\D|\/' ; 
	if(amount.match(reggy)) 
	{
			alert("Only enter numbers and no decimal point\nInvalid input: "+amount.match(reggy));
			return false;
	} 



	return (testresults)
}
