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,"",'width=' + (width + 20) + ',height=' + (height + 60) + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
  }
 
 function checkconfirm(theform)
{
  if(theform.buyCheck.checked) 
   {
     return true;
	}
	
	alert("Please check the check box for the item you want to buy.")
    return false;			
}	

function ValidateColorSize()
{
   if (window.document.frmDetail.qty.value != "0" && window.document.frmDetail.t1.value !="" && window.document.frmDetail.t1.value !="h-packingslipno" && window.document.frmDetail.p1.options[window.document.frmDetail.p1.options.selectedIndex].value =="") { 
    alert("Please choose color or size.");
    window.document.frmDetail.p1.focus();
    return (false);
   }
   
   if (window.document.frmDetail.qty.value != "0" && window.document.frmDetail.t2.value !="" && window.document.frmDetail.t2.value !="h-packingslipno" && window.document.frmDetail.p2.options[window.document.frmDetail.p2.options.selectedIndex].value =="") {
     alert("Please choose color or size.");
     window.document.frmDetail.p2.focus();
     return (false);
   }
   
   return (true);
 } 
 
 function clearall(){
 if (document.all.lyrProgramming) { 
    document.all.lyrProgramming.style.display="none";
   }
 
 if (document.all.lyrConsole) { 
    document.all.lyrConsole.style.display="none";
  }
   
 if (document.all.lyrFeedback) { 
    document.all.lyrFeedback.style.display="none";
  }
 
 if (document.images.Programming) {
	document.images.Programming.src = "images/tabp4_programming.gif";
   }
   
 if (document.images.Console) {
	document.images.Console.src = "images/tabP4_console.gif";
   }
 
 if (document.images.Feedback) {
	document.images.Feedback.src = "images/tabP4_consfeedback.gif";
   }
}

function setProgramming()
{
 clearall();
 document.images.Programming.src = "images/tabp4_programming.gif";
 document.all.lyrProgramming.style.display="block"; 
 }
 
function setConsole()
{
 clearall();
 document.images.Console.src = "images/tabP4_console.gif";
 document.all.lyrConsole.style.display="block"; 
 }

function setFeedback()
{
 clearall();
 document.images.Feedback.src = "images/tabP4_consfeedback.gif";
 document.all.lyrFeedback.style.display="block"; 
 }   