function confirmation() {
var userid=document.myform.username.value
if(userid=='')
{
	window.location='signin_new.php?check=yes';
	}
else
{
		window.location = "order_review.php";
		document._xclick.submit();		
}
}


function callBack(pval,sval,qchval,qid,requantity)
{
var thisTextBox = 'box' + qid;
var postquantity=document.getElementById(thisTextBox).value;
if(postquantity>qchval)
{
alert("Only "+qchval+" pieces are available in stock");
document.getElementById(thisTextBox).value=requantity;
document.getElementById(thisTextBox).focus();
}
else
{
document.myform.prochvalue.value=pval;
document.myform.prochsizevalue.value=sval;
document.myform.submit();
}
}




function clear_cart()
{
	var what = confirm("Do you confirm to clear your cart.");
	if(what == true)
	{
		window.location = "order.php?sess=out";
	}
	return true;
	
	
}
 function Clear() {    
   
   
		$con = confirm("Are you sure you want to clear this cart");
		if($con) {
		   document.myform.chkMode.value='1';    
		   document.myform.submit();	
		} else {
			return false;
		}
 }
 
 function Send_Page(chk_ship) {    
	window.location.href="signin_new.php?check=yes";
}	


