		function ScrollIt(){
			window.scrollTo(document.Form1.PageX.value, document.Form1.PageY.value);
			}
		function setcoords(){
			var myPageX;
			var myPageY;
			if (document.all){
				myPageX = document.body.scrollLeft;
				myPageY = document.body.scrollTop;
				}
			else{
				myPageX = window.pageXOffset;
				myPageY = window.pageYOffset;
				}
			document.Form1.PageX.value = myPageX;
			document.Form1.PageY.value = myPageY;
			}
			
	function showimage(pubid)
          { 
          //alert(pubid);
	        window.open(pubid, '', 'width=400; height=338');
	        return false;
    }
      

      
 var WindowObjectReference = null; // global variable

 function openwin(strUrl, strWindowName)
 {
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, strWindowName,
           "resizable=yes,scrollbars=yes,status=yes,width=350,height=350");
  }
  else
  {
    WindowObjectReference.focus();
  };
 }
  
      
      
      
	//function openwinTEST(pagename)
         // { 
         // window.open(pagename, "newwin", "width=350", "height=400");
	    //    return false;
   // }
   
   
   
           
 function openLargewin(strUrl, strWindowName)
 {
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, strWindowName,
           "resizable=yes,scrollbars=yes,status=yes,width=600,height=600");
  }
  else
  {
    WindowObjectReference.focus();
  };
 }
 
 
 
  function openImagewin(strUrl, strWindowName)
 {
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, strWindowName,
           "resizable=yes,scrollbars=yes,status=yes,width=350,height=600");
  }
  else
  {
    WindowObjectReference.focus();
  };
 }
 
 
 
 
 function openMediumwin(strUrl, strWindowName)
 {
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, strWindowName,
           "resizable=yes,scrollbars=yes,status=yes,width=500,height=250");
  }
  else
  {
    WindowObjectReference.focus();
  };
 }
 
 
 function openFullwin(strUrl, strWindowName)
 {
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, strWindowName,
           "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=500,height=500");
  }
  else
  {
    WindowObjectReference.focus();
  };
 }
 
 
 
         
   	function titleKeyPress(e)
			{
				//alert(event.which);
				//alert(event.keyCode);
				if(e==null)
					e=event;
				if (document.all)
				{
					if (e.keyCode==13)
					{
						e.returnValue=false;
						document.getElementById("imgButtonGo").click();

					}
				}
				else
				{
					if (e.which==13)
					{
						e.returnValue=false;
						document.getElementById("imgButtonGo").click();
					}				
				}
				//return false;			
			}  
			
  function qtyKeyPress(e)
			{
				//alert(event.which);
				//alert(event.keyCode);
				if(e==null)
					e=event;
				if (document.all)
				{
					if (e.keyCode==13)
					{
						e.returnValue=false;
						document.getElementById("btnAddtoCart").click();

					}
				}
				else
				{
					if (e.which==13)
					{
						e.returnValue=false;
						document.getElementById("btnAddtoCart").click();
					}				
				}
				//return false;			
 }
		        