
  function updateprice() {
    document.form.action = '<%=shopurl & "shop/"%>item.asp#price';
    document.form.submit()
  }
  function showimage(thefile)
  {
   if (!window.popWindow) 
    {
	popWindow = window.open("/shop/imageview.asp?file=" + thefile,"View","title ='test',width=550,height=550,toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");

	}
   else
	{
	if (!popWindow.closed)
	  {
	  popWindow.focus();
	  popWindow.location = '/shop/imageview.asp?file=' + thefile
	  }
	 else
	  {
	   popWindow = window.open("/shop/imageview.asp?file=" + thefile,"View","title =window,width=550,height=550,toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");

	  }
	}
   }

  function optlinkpopup(thewidth,theheight,theurl)
  {
   if (!window.poplinkWindow) 
    {
	poplinkWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");

    }
   else
	{
	if (!poplinkWindow.closed)
	  {
	  //poplinkWindow.focus();
	  poplinkWindow.close();
	  poplinkWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
	  }
	 else
	  {
	   poplinkWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");
	  }
	}
   }
   
 /// Terms & Conditions
 
//"Accept terms" form submission- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
}
}

