function Validationkeyword(theform)
{
  if (theform.Keyword.value == "")
  {
    alert("Please enter your search keyword.");
    theform.Keyword.focus();
    return (false);
  }
    return (true);
 } 
 
 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 clearall(){
 if (document.all.lyracce) { 
    document.all.lyracce.style.display="none";
   }
 
 if (document.all.lyrfeat) { 
    document.all.lyrfeat.style.display="none";
  }
   
 if (document.all.lyritem) { 
    document.all.lyritem.style.display="none";
  }
 
 if (document.all.lyrspec) { 
    document.all.lyrspec.style.display="none";
  }
    
 if (document.images.imgaccess) {
	document.images.imgaccess.src = "images/btn_tab_accessories.gif";
   }
   
 if (document.images.imgfeat) {
	document.images.imgfeat.src = "images/btn_tab_features.gif";
   }
 
 if (document.images.imgitem) {
	document.images.imgitem.src = "images/btn_tab_included.gif";
   }
 
 if (document.images.imgspec) {
	document.images.imgspec.src = "images/btn_tab_specifications.gif";
   }
}

function setaccess()
{
 clearall();
 document.images.imgaccess.src = "images/btn_tab_accessories_up.gif";
 document.all.lyracce.style.display="block"; 
 }
 
function setfeat()
{
 clearall();
 document.images.imgfeat.src = "images/btn_tab_features_up.gif";
 document.all.lyrfeat.style.display="block"; 
 }
 
function setitem()
{
 clearall();
 document.images.imgitem.src = "images/btn_tab_included_up.gif";
 document.all.lyritem.style.display="block"; 
 }
 
function setspec()
{
 clearall();
 document.images.imgspec.src = "images/btn_tab_specifications_up.gif";
 document.all.lyrspec.style.display="block"; 
 }   
 
function ValidateSelection() {
   var f = document.frmDetail;
   var e = f.buycheck;
   
   for (i=0;i<e.length;i++)
    {
	    if (e[i].checked)
	     {
		   f.qty[i+1].value=1;
	      }
    }
   
   return (true);
 }	 
