function Validationkeyword(theform)
{
  if (theform.Keyword.value == "")
  {
    alert("Please enter your search keyword.");
    theform.Keyword.focus();
    return (false);
  }
    return (true);
 } 
 
function ValidateSelection()
 {                      
   var f = window.document.frmDetail;
   
   for(var i=0; i < f.elements.length; i++) {
      var e = f.elements[i];
      
      if (e.type == "select-one") {
         if (e.name == "sizes" && e.options[e.options.selectedIndex].value =="") { 
            alert("Please choose size.");
            e.focus();
            return (false);
           }
          else if (e.name == "sizes" && e.options[e.options.selectedIndex].value !="") { 
            var size = f.sizes.options[f.sizes.options.selectedIndex].value;
            var sizecode  = size.split("_");
            
            f.size.value = sizecode[0];
            f.price.value = sizecode[1];
          }  
       }
    }
 
  return (true);
 }

function displayWindow(url, width, height) {
      var url1 = 'bigimage.asp?pic=' + url + '&height=460&width=500';
	  var Win = window.open(url1,"",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
	}
	
function switchImage(sColor) {
    if (sColor != "") {
	   if (document.images.ItemPic) {
		   document.images.ItemPic.src = 'images/' + sColor;
	      }
	   } 
     }	

function OpenPopUp(url, width, height) {
	     var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=no' );
	}