
function validateForm() 
{
 var okSoFar=true
 with (document.shoping)
 {
  if (okSoFar==true){
  
  submit();
  
  }
  
 }
}
// -->

function getquantity()
{
	
	var pid = document.shoping.id.value;

	var sizeid=document.shoping.size.value;

	var sizeCnt = document.shoping.sizeCount.value;
	var qtycnt = document.shoping.quantity.length
	//alert(qtycnt);
	for(k=qtycnt;k>=1;k--)
	{
		//alert(k);
		document.shoping.quantity.remove(k)// = null;//alert(k);
	}
	qtycnt = document.shoping.quantity.length
	//alert(qtycnt);
	for(i=1;i<=sizeCnt;i++)
	{
		var val = eval("document.shoping.txt_"+i+".value")
		var sid = eval("document.shoping.txt_sizeid"+i+".value")
		if(sid == sizeid)
		{
		
			for(j=0;j<val;j++)
			{
				//alert(j)
				var j2=j+1;
				document.shoping.quantity.options[j] = new Option(j2,j2);
				
			}
		}
	}
	
	//window.location="product_details.php?id="+pid+"&SID="+sizeid;	
}



function printme(){
<!--if (window.print) {-->
    window.print() ;  
	}





function confirmDelete(question, where)
{
	temp = window.confirm(question);
	if (temp) //delete
	{
		window.location=where;
	}
}


function open_window(link,w,h)
{
		var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=yes,scrollbars=yes";
		newWin = window.open(link,'newWin',win);
}

