function Validationkeyword(theform)
{
  if (theform.Keyword.value == "")
  {
    alert("Please enter your search keyword.");
    theform.Keyword.focus();
    return (false);
  }
    return (true);
 } 
 
 function OpenPopUp(url, width, height) {
	 var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=no' );
  }
  
 function displayWindow(url, width, height) {
      var url1 = 'bigimage.asp?pic=' + url + '&height=' + height + '&width=' + width;
	  var Win = window.open(url1,"1",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no,screenX=0,screenY=0,top=0,left=0' );
 }
 

function ValidateSelection() {
   var f = document.frmDetail;
   var itemname = f.itemname.value;
   var e = f.OptSize;
   var s = "";
   var i;
   
   for (i=0;i<e.length;i++){
	  if (e[i].checked){
		 s = e[i].value;
	    }
    }
   
   if (s == ""){
      alert("Please Select Size.");
      return (false); 
    }
   
   var sizeCode = s.split(" --- ");
   itemname = itemname + "  Size: " + sizeCode[2];
   f.price.value = sizeCode[0];
   f.partno.value = sizeCode[1];
   f.item.value = itemname; 
   f.weight.value = sizeCode[3];
          
   return (true);
 }	
 
 function switchImage(sColor) {
	if (sColor != "") {
	   var colorpic = ColorList[sColor];
	   if (document.images.ItemPic) {
		   document.images.ItemPic.src = 'images/' + colorpic;
	      }
	   }   
    } 