// JavaScript Document

if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.showcontent{display:none;}\n')
document.write('</style>\n')
}
function tech(){
obj=document.getElementById('tech')
obj.style.display="block"
obj1=document.getElementById('attribute')
obj1.style.display="none"
}
function attribute(){
obj=document.getElementById('attribute')
obj.style.display="block"
obj1=document.getElementById('tech')
obj1.style.display="none"
}

function hometabsearch(tab1,tab2,aid1,aid2,class1,class2){
	document.getElementById(tab1).style.display="block";
	document.getElementById(tab2).style.display="none";
	document.getElementById(aid2).className=class1;
	document.getElementById(aid1).className=class2;
	document.getElementById(aid2).style.borderBottom="1px solid #FFFFFF";
	document.getElementById(aid1).style.borderBottom="1px solid #7A97D4";
	}
	
	
	
function openpopup(objfield)
{   
    if(objfield.value!=''){
    var mcnumber = objfield.value;    
    if(mcnumber.length<4){    
    popwindow=window.open('../mps/search.do?invoke=getPoolmotor&mcnumber='+mcnumber,'results','height=450,width=800,resizable=yes,menubar=no,scrollbars=yes,toolbar=no,left=220,top=220');
	popwindow.focus();   
     }else{
	 document.location = "../mps/search.do?invoke=getPoolmotor&mcnumber="+mcnumber;
	  }
    }else{
	alert('Please enter Model Number or Catalog Number');
	}

}