
function purchase(val) {

	if(val=="Starter Package"){
		var MyWindow=window.open("../include/order.php?p_type=p1","","scrollbars=no,menubar=no,height=400,width=400,resizable=no,toolbar=no,location=no,status=no");
	}

	if(val=="Bonus Package"){
		var MyWindow=window.open("../include/order.php?p_type=p2","","scrollbars=no,menubar=no,height=400,width=400,resizable=no,toolbar=no,location=no,status=no");
	}

	if(val=="Super Saver Package"){
		var MyWindow=window.open("../include/order.php?p_type=p3","","scrollbars=no,menubar=no,height=400,width=400,resizable=no,toolbar=no,location=no,status=no");
	}
}

function compute(val,pr) {

	var total = val * pr ;
	var r_total=Math.round(total*100)/100;
	document.getElementById("total").innerHTML=r_total;
}

function validateNumber( fld,nam ){

   var temp_value = fld; 
   var temp_name= nam;
   var Chars = "0123456789"; 

	for (var i = 0; i < temp_value.length; i++) {
	
		if (Chars.indexOf(temp_value.charAt(i)) == -1){ 
			document.getElementById("err_msg").innerHTML="<font color='red'>Invalid entry, Only numbers (0-9) are allowed in this field.</font>";
			document.getElementById("checkout").innerHTML="";
			return;
		}else{
			document.getElementById("checkout").innerHTML="<a href='javascript: void(0);' onClick='javascript: frmorder.submit();'><img src='../images/checkout.gif' /></a>";
			document.getElementById("err_msg").innerHTML=""; 
		}


	}   

}

//================ Request form====================

function ifso_() {
	document.getElementById("ifso").innerHTML="<div style='float: left;'>Product Name: </div> <div><input type='text' name='prodname' id='prodname' /></div><div style='float: left;'>Quantity: </div> <div><input type='text' name='quan' id='quan' /></div>";
}

function ifso_2() {
	document.getElementById("ifso").innerHTML="<div style='float: left;'>Product Name: </div> <div><input type='text' name='prodname' id='prodname' /></div><div style='float: left;'>";
}

function ifnot_() {
	document.getElementById("ifso").innerHTML="";
}

function ifout_() {
	document.getElementById("out").innerHTML="<div style='float: left;'>Name of Laundry: </div> <div><input type='text' name='laundryname' id='laundryname' /></div><div style='float: left;'>";
}

function ifnotout_() {
	document.getElementById("out").innerHTML="";
}

//function sent() {
//	var load=document.getElementById("content").innerHTML="<h1>Message Sent</h1><input   style='border: 0px; width: 100px; height: 30px;' type='image' src='../images/bt-close.gif' name='cancel' id='cancel' value='Close' onClick='javascript: window.close();' />";
        //window.close();
//}


