
function Search() {
    //alert("aa=" + $('#inpSearch').attr("value") + "|||bbb=" + $('#search').attr("value") + "bbb");
    $('#search').attr("value", $('#inpSearch').attr("value"));

    //alert("aa=" + $('#inpSearch').attr("value") + "|||bbb=" + $('#search').attr("value") + "bbb");
    $('#SearchForm').submit();
}

function showthemnew(TableID) 
{
   var oTable;

    oTable=document.getElementById(TableID);
    
    oTable.style.display = "block";
}

function hidethemnew(id) 
{
      var obj;
		if (document.getElementById)
			obj=document.getElementById(id)
		else if (document.all)
			obj=document.all[id]
         obj.style.display = "none";
}
   
   
//	הלינק עובר למקום אחר
function GoToUrl(url)
{
    if(url!="")        
	    document.location.href=url;
}


//////////////////////////////////////////////////////////////////////////////////////////
//	הצגה והסתרה של טבלאות
function showDiv(id)
	{
		var obj;
		if (document.getElementById)
			obj=document.getElementById("d_" + id)
		else if (document.all)
			obj=document.all["d_" + id]
		obj.style.display = (obj.style.display=="block"?"none":"block");
	}
	
function hidethem(id) {
      var obj;
		if (document.getElementById)
			obj=document.getElementById("d_" + id)
		else if (document.all)
			obj=document.all["d_" + id]
         obj.style.display = "none";
   }
   
function showthem(id) {
      var obj;
		if (document.getElementById)
			obj=document.getElementById("d_" + id)
		else if (document.all)
			obj=document.all["d_" + id]
		if(obj != null)
            obj.style.display = "block";
   }

function hidethemCountry(id) 
{
	document.all["d_"].style.display = "none";
	document.all["d_Africa"].style.display = "none";
	document.all["d_Asia"].style.display = "none";
	document.all["d_Caribbean_Basin"].style.display = "none";
	document.all["d_Central_America"].style.display = "none";
	document.all["d_Europe"].style.display = "none";
	document.all["d_Middle_East"].style.display = "none";
	document.all["d_North_America"].style.display = "none";
	document.all["d_South_America"].style.display = "none";
	document.all["d_United_States"].style.display = "none";
}
	
function ss(sos)
{
	
	if(sos.style.display==none)
	{
		sos.style.display='';
		soss=1;
	}
	else
	{
		sos.style.display=none;
	}
	
}
function ss2(sos)
{
	
	sos.style.display=none;
	
}
function showhide22(sos)
{
	sos.style.display=none;
}




function showhide44(sos)
{
	if (soss==1)
	{
	sos.style.display='';
	}
}
//////////////////////////////////////////////////////////////////////////////////////////




//////////////////////////////////////////////////////////////////////////////////////////
//	טעינת תמונות בתפריט ראשי עליון
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages(objId,newUrl) 
{
   //debugger;   
	if ((typeof(document.images)!="undefiend") && (preloadFlag == true)) 
	{
	    document.getElementById(objId).src = newUrl;
		//for (var i=0; i<changeImages.arguments.length; i+=2) {
		//	document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		//}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		top_02_over = newImage("../images/top_02-over.gif");
		top_02_top_05_over = newImage("../images/top_02-top_05_over.gif");
		top_03_over = newImage("../images/top_03-over.gif");
		top_03_top_05_over = newImage("../images/top_03-top_05_over.gif");
		top_04_over = newImage("../images/top_04-over.gif");
		top_04_top_05_over = newImage("../images/top_04-top_05_over.gif");
		top_05_over = newImage("../images/top_05-over.gif");
		top_06_over = newImage("../images/top_06-over.gif");
		top_07_over = newImage("../images/top_07-over.gif");
		top_08_over = newImage("../images/top_08-over.gif");
		preloadFlag = true;
	}
}
//////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////
//	פתיחת חלון של תמונה גדולה ללא צורך בדף 
function newWindow(newURL,imgWidth,imgHeight,imgName){
	if (document.images){
		//var imgName='';
		var nnWidth=imgWidth+12;
		var nnHeight=imgHeight+31;
		var ieWidth=imgWidth+11;
		var ieHeight=imgHeight+29;
		var maxWidth=screen.availWidth-30;
		var maxHeight=screen.availHeight-30;
		var winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=no,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		if (imgWidth>=maxWidth){
			nnWidth=maxWidth;
			ieWidth=maxWidth;
			ieHeight=ieHeight+16;
			winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=yes,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		}
		if (imgHeight>=maxHeight){
			nnHeight=maxHeight;
			ieHeight=maxHeight;
			ieWidth=ieWidth+15;
			winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=yes,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		}
		if ((imgWidth>=maxWidth)&&(imgHeight>=maxHeight)){
			nnWidth=maxWidth;
			nnHeight=maxHeight;
			ieWidth=maxWidth;
			ieHeight=maxHeight;
			winSize = '"width='+ieWidth+',height='+ieHeight+',outerWidth='+nnWidth+',outerHeight='+nnHeight+',top=10,left=10,scrollbars=yes,resizable=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,personalbar=no,toolbar=no"';
		}
		myWindow = window.open("","_blank",winSize)
		if (document.all){
			myWindow.resizeTo(ieWidth,ieHeight);
		}
		myWindow.document.write("<html><head><title>");
		myWindow.document.writeln(imgName);
		myWindow.document.write("</title></head><body marginwidth='0' marginheight='0' leftmargin='0' topmargin='0' bgcolor='White' ");
		//myWindow.document.write("onLoad='setTimeout(window.close, 30*1000)'");
		myWindow.document.write("><div align='left'><img src=");
		myWindow.document.writeln(newURL);
		myWindow.document.write(" name='preview' align='top' hspace=0 vspace=0 border=0 height=");
		myWindow.document.writeln(imgHeight);
		myWindow.document.write(" width=");
		myWindow.document.writeln(imgWidth);
		myWindow.document.write("></div></body></html>");
		myWindow.document.close();
		return;
	}
}	
//////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////
//	In Page Contact_1.asp go to worldwide.asp
function ffrm(alla)
{
	x=window.open("worldwide.asp","fw","width=600,height=500,top=10,left=50,scrollbars=yes");
	return false;
}
//////////////////////////////////////////////////////////////////////////////////////////


//////////////////////////////////////////////////////////////////////////////////////////
// In Page distributors_1.asp
function checking()
{
	
	var x,i,flag;
	var j;
			
	
		if(document.club_form.e_mail.value=="")
			{
				alert("Please fill the e-mail field in this form!");
				document.club_form.e_mail.focus();
				return false;
			}	
				
		
		x=	document.club_form.e_mail.value;
				
				flag=false;
				for (i=1;i<=x.length;i++)
				{
					if (x.charAt(i)=="@")
						flag=true;
				}

				if (flag==false)
					{
						alert("Please fill correct e-mail in this form!");
						document.club_form.e_mail.focus();
						return false;
					}
}
//////////////////////////////////////////////////////////////////////////////////////////


//////////////////////////////////////////////////////////////////////////////////////////
//	In Page products_features_1.asp
function linkTo()
{
	var a = document.form1.select1.options[document.form1.select1.selectedIndex].value
	window.location.href=a;
}
//////////////////////////////////////////////////////////////////////////////////////////




//////////////////////////////////////////////////////////////////////////////////////////
//	In Page products_request_1.asp
function checking_request()
{
	
	var x,i,flag;
	var j;
			
	
		if(document.req_form.fname.value=="")
			{
				alert("Please fill the name field in this form!");
				document.req_form.fname.focus();
				return false;
			}
		
		if(document.req_form.lname.value=="")
			{
				alert("Please fill the last name field in this form!");
				document.req_form.lname.focus();
				return false;
			}
		
		
		if(document.req_form.company.value==0)
			{
				alert("Please enter company name in this form!");
				document.req_form.company.focus();
				return false;
			}
			
		if(document.req_form.address.value==0)
			{
				alert("Please enter address in this form!");
				document.req_form.address.focus();
				return false;
			}
			
		if(document.req_form.city.value==0)
			{
				alert("Please enter city in this form!");
				document.req_form.city.focus();
				return false;
			}
		
		if(document.req_form.pcode.value==0)
			{
				alert("Please enter postal code in this form!");
				document.req_form.pcode.focus();
				return false;
			}
		
			
		if(document.req_form.state.value==0)
			{
				alert("Please enter state in this form!");
				document.req_form.state.focus();
				return false;
			} 
		
		
		if(document.req_form.countryAfrica.value==0 && document.req_form.countryAsia.value==0 && document.req_form.countryCaribbean_Basin.value==0 && document.req_form.countryCentral_America.value==0 && document.req_form.countryEurope.value==0 && document.req_form.countryMiddle_East.value==0 && document.req_form.countryNorth_America.value==0 && document.req_form.countrySouth_America.value==0 && document.req_form.countryUnited_States.value==0) 
			{
				alert("Please enter country in this form!");
				//document.req_form.countryAfrica.focus();
				return false;
			}
			
		if(document.req_form.phone.value==0)
			{
				alert("Please enter phone in this form!");
				document.req_form.phone.focus();
				return false;
			}
			
		
		
		if(document.req_form.e_mail.value=="")
			{
				alert("Please fill the e-mail field in this form!");
				document.req_form.e_mail.focus();
				return false;
			}	
				
		
		x=	document.req_form.e_mail.value;
				
				flag=false;
				for (i=1;i<=x.length;i++)
				{
					if (x.charAt(i)=="@")
						flag=true;
				}

				if (flag==false)
					{
						alert("Please fill correct e-mail in this form!");
						document.req_form.e_mail.focus();
						return false;
					}
		
			
}
//////////////////////////////////////////////////////////////////////////////////////////


//////////////////////////////////////////////////////////////////////////////////////////
//	In Page rfi_1.asp
function checking_rfi()
{
	
	var x,i,flag;
	var j;
			
	
		if(document.club_form.e_mail.value=="")
			{
				alert("Please fill the e-mail field in this form!");
				document.club_form.e_mail.focus();
				return false;
			}	
				
		
		x=	document.club_form.e_mail.value;
				
				flag=false;
				for (i=1;i<=x.length;i++)
				{
					if (x.charAt(i)=="@")
						flag=true;
				}

				if (flag==false)
					{
						alert("Please fill correct e-mail in this form!");
						document.club_form.e_mail.focus();
						return false;
					}
		
		if(document.club_form.fname.value=="")
			{
				alert("Please fill the name field in this form!");
				document.club_form.fname.focus();
				return false;
			}
		
		if(document.club_form.lname.value=="")
			{
				alert("Please fill the last name field in this form!");
				document.club_form.lname.focus();
				return false;
			}
		
		
		if(document.club_form.company.value==0)
			{
				alert("Please enter company name in this form!");
				document.club_form.company.focus();
				return false;
			}
			
		if(document.club_form.address_1.value==0)
			{
				alert("Please enter address in this form!");
				document.club_form.address_1.focus();
				return false;
			}
			
		if(document.club_form.city.value==0)
			{
				alert("Please enter city in this form!");
				document.club_form.city.focus();
				return false;
			}
		
		if(document.club_form.pcode.value==0)
			{
				alert("Please enter postal code in this form!");
				document.club_form.pcode.focus();
				return false;
			}
		
			
		if(document.club_form.state.value==0)
			{
				alert("Please enter state in this form!");
				document.club_form.state.focus();
				return false;
			}
		
		
		if(document.club_form.countryAfrica.value==0 && document.club_form.countryAsia.value==0 && document.club_form.countryCaribbean_Basin.value==0 && document.club_form.countryCentral_America.value==0 && document.club_form.countryEurope.value==0 && document.club_form.countryMiddle_East.value==0 && document.club_form.countryNorth_America.value==0 && document.club_form.countrySouth_America.value==0 && document.club_form.countryUnited_States.value==0)
			{
				alert("Please enter country in this form!");
				//document.club_form.countryAfrica.focus();
				return false;
			}
			
		if(document.club_form.phone.value==0)
			{
				alert("Please enter phone in this form!");
				document.club_form.phone.focus();
				return false;
			}
			
		if(document.club_form.fax.value==0)
			{
				alert("Please enter fax in this form!");
				document.club_form.fax.focus();
				return false;
			}
}
//////////////////////////////////////////////////////////////////////////////////////////


//////////////////////////////////////////////////////////////////////////////////////////
//	In Page service_download_next_1.asp.asp
function checking_download_next()
{
	
	var x,i,flag;
	var j;
			
	
		if(document.club_form.e_mail.value=="")
			{
				alert("Please fill the e-mail field in this form!");
				document.club_form.e_mail.focus();
				return false;
			}	
				
		
		x=	document.club_form.e_mail.value;
				
				flag=false;
				for (i=1;i<=x.length;i++)
				{
					if (x.charAt(i)=="@")
						flag=true;
				}

				if (flag==false)
					{
						alert("Please fill correct e-mail in this form!");
						document.club_form.e_mail.focus();
						return false;
					}
		
		if(document.club_form.fname.value=="")
			{
				alert("Please fill the name field in this form!");
				document.club_form.fname.focus();
				return false;
			}
		
		if(document.club_form.lname.value=="")
			{
				alert("Please fill the last name field in this form!");
				document.club_form.lname.focus();
				return false;
			}
		
		
		if(document.club_form.company.value==0)
			{
				alert("Please enter company name in this form!");
				document.club_form.company.focus();
				return false;
			}
		
		if(document.club_form.state.value==0)
			{
				alert("Please enter state in this form!");
				document.club_form.state.focus();
				return false;
			}
		
		
		if(document.club_form.countryAfrica.value==0 && document.club_form.countryAsia.value==0 && document.club_form.countryCaribbean_Basin.value==0 && document.club_form.countryCentral_America.value==0 && document.club_form.countryEurope.value==0 && document.club_form.countryMiddle_East.value==0 && document.club_form.countryNorth_America.value==0 && document.club_form.countrySouth_America.value==0 && document.club_form.countryUnited_States.value==0)
			{
				alert("Please enter country in this form!");
				//document.club_form.countryAfrica.focus();
				return false;
			}
			
		if(document.club_form.purpose_of_registration.value==0)
			{
				alert("Please enter Purpose of Registration in this form!");
				document.club_form.purpose_of_registration.focus();
				return false;
			}
		
		
		if(document.club_form.phone.value==0)
			{
				alert("Please enter telephone in this form!");
				document.club_form.phone.focus();
				return false;
			}
		
}
//////////////////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////////////////
//	In Page service_product_1.asp
function checking_service_product()
{
	
	var x,i,flag;
	var j;
			
	
		if(document.club_form.e_mail.value=="")
			{
				alert("Please fill the e-mail field in this form!");
				document.club_form.e_mail.focus();
				return false;
			}	
				
		
		x=	document.club_form.e_mail.value;
				
				flag=false;
				for (i=1;i<=x.length;i++)
				{
					if (x.charAt(i)=="@")
						flag=true;
				}

				if (flag==false)
					{
						alert("Please fill correct e-mail in this form!");
						document.club_form.e_mail.focus();
						return false;
					}
		
		if(document.club_form.fname.value=="")
			{
				alert("Please fill the name field in this form!");
				document.club_form.fname.focus();
				return false;
			}
		
		if(document.club_form.lname.value=="")
			{
				alert("Please fill the last name field in this form!");
				document.club_form.lname.focus();
				return false;
			}
		
		
		if(document.club_form.company.value==0)
			{
				alert("Please enter company name in this form!");
				document.club_form.company.focus();
				return false;
			}
			
		if(document.club_form.city.value==0)
			{
				alert("Please enter city in this form!");
				document.club_form.city.focus();
				return false;
			}
		
		if(document.club_form.country.value==0)
			{
				alert("Please enter country in this form!");
				document.club_form.country.focus();
				return false;
			}
			
		if(document.club_form.model.value==0)
			{
				alert("Please enter model number in this form!");
				document.club_form.model.focus();
				return false;
			}
			
		if(document.club_form.serial.value==0)
			{
				alert("Please enter serial number in this form!");
				document.club_form.serial.focus();
				return false;
			}
			
		
}
//////////////////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////////////////
//	In Page service_serve_1.asp
function checking_service_serve()
{
		if(document.club_form.name.value=="")
			{
				alert("Please fill the name field in this form!");
				document.club_form.name.focus();
				return false;
			}
			
		if(document.club_form.company.value=="")
			{
				alert("Please fill the company field in this form!");
				document.club_form.company.focus();
				return false;
			}
			
	var x,i,flag;
	var j;
			
	
		if(document.club_form.email.value=="")
			{
				alert("Please fill the e-mail field in this form!");
				document.club_form.email.focus();
				return false;
			}	
				
		
		x=	document.club_form.email.value;
				
				flag=false;
				for (i=1;i<=x.length;i++)
				{
					if (x.charAt(i)=="@")
						flag=true;
				}

				if (flag==false)
					{
						alert("Please fill correct e-mail in this form!");
						document.club_form.email.focus();
						return false;
					}	
		
		flag_sa_tech=false;
		for(p=0;p<document.club_form.sa_tech.length;p++)
		{
			if(document.club_form.sa_tech[p].checked==true)
			{
				flag_sa_tech=true;
			}
		}
		if (flag_sa_tech==false)
		{
			alert("Please fill the Technical Support")
			return false;
		}
		
		flag_sa_avai=false;
		for(a=0;a<document.club_form.sa_avai.length;a++)
		{
			if(document.club_form.sa_avai[a].checked==true)
			{
				flag_sa_avai=true;
			}
		}
		if (flag_sa_avai==false)
		{
			alert("Please fill the Availability of sales persons")
			return false;
		}
		
		flag_sa_resp=false;
		for(a=0;a<document.club_form.sa_resp.length;a++)
		{
			if(document.club_form.sa_resp[a].checked==true)
			{
				flag_sa_resp=true;
			}
		}
		if (flag_sa_resp==false)
		{
			alert("Please fill the Response Time to RFQ’s")
			return false;
		}
		
		flag_cu_quic=false;
		for(a=0;a<document.club_form.cu_quic.length;a++)
		{
			if(document.club_form.cu_quic[a].checked==true)
			{
				flag_cu_quic=true;
			}
		}
		if (flag_cu_quic==false)
		{
			alert("Please fill the Quick & Accurate order confirmation")
			return false;
		}
		
		flag_cu_deli=false;
		for(a=0;a<document.club_form.cu_deli.length;a++)
		{
			if(document.club_form.cu_deli[a].checked==true)
			{
				flag_cu_deli=true;
			}
		}
		if (flag_cu_deli==false)
		{
			alert("Please fill the On time Delivery")
			return false;
		}
		
		flag_cu_avai=false;
		for(a=0;a<document.club_form.cu_avai.length;a++)
		{
			if(document.club_form.cu_avai[a].checked==true)
			{
				flag_cu_avai=true;
			}
		}
		if (flag_cu_avai==false)
		{
			alert("Please fill the Availability of personnel")
			return false;
		}
		
		flag_qu_qual=false;
		for(a=0;a<document.club_form.qu_qual.length;a++)
		{
			if(document.club_form.qu_qual[a].checked==true)
			{
				flag_qu_qual=true;
			}
		}
		if (flag_qu_qual==false)
		{
			alert("Please fill the Quality of products")
			return false;
		}
		
		flag_qu_ser=false;
		for(a=0;a<document.club_form.qu_ser.length;a++)
		{
			if(document.club_form.qu_ser[a].checked==true)
			{
				flag_qu_ser=true;
			}
		}
		if (flag_qu_ser==false)
		{
			alert("Please fill the Quality of Service")
			return false;
		}
		
		flag_qu_spee=false;
		for(a=0;a<document.club_form.qu_spee.length;a++)
		{
			if(document.club_form.qu_spee[a].checked==true)
			{
				flag_qu_spee=true;
			}
		}
		if (flag_qu_spee==false)
		{
			alert("Please fill the Speed & Effectiveness of Corrective Actions")
			return false;
		}
		
		flag_overall=false;
		for(a=0;a<document.club_form.overall.length;a++)
		{
			if(document.club_form.overall[a].checked==true)
			{
				flag_overall=true;
			}
		}
		if (flag_overall==false)
		{
			alert("Please fill the Overall Customer Satisfaction")
			return false;
		}
		
		
			
}
//////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////
//	In Page pricing_in.asp
function checking_pricing()
{
	
	var x,i,flag;
	var j;
		
		if(document.club_form.name.value=="")
			{
				alert("Please fill the name field in this form!");
				document.club_form.name.focus();
				return false;
			}
		
		if(document.club_form.company.value=="")
			{
				alert("Please fill the company field in this form!");
				document.club_form.company.focus();
				return false;
			}
		
		if(document.club_form.e_mail.value=="")
			{
				alert("Please fill the e-mail field in this form!");
				document.club_form.e_mail.focus();
				return false;
			}	
				
		
		x=	document.club_form.e_mail.value;
				
				flag=false;
				for (i=1;i<=x.length;i++)
				{
					if (x.charAt(i)=="@")
						flag=true;
				}

				if (flag==false)
					{
						alert("Please fill correct e-mail in this form!");
						document.club_form.e_mail.focus();
						return false;
					}
		
		if(document.club_form.phone.value=="")
			{
				alert("Please fill the phone field in this form!");
				document.club_form.phone.focus();
				return false;
			}
		
		
		if(document.club_form.state.value==0)
			{
				alert("Please enter state in this form!");
				document.club_form.state.focus();
				return false;
			}
		
		
		if(document.club_form.countryAfrica.value==0 && document.club_form.countryAsia.value==0 && document.club_form.countryCaribbean_Basin.value==0 && document.club_form.countryCentral_America.value==0 && document.club_form.countryEurope.value==0 && document.club_form.countryMiddle_East.value==0 && document.club_form.countryNorth_America.value==0 && document.club_form.countrySouth_America.value==0 && document.club_form.countryUnited_States.value==0)
			{
				alert("Please enter country in this form!");
				//document.club_form.countryAfrica.focus();
				return false;
			}
		
}
//////////////////////////////////////////////////////////////////////////////////////////


function index_page_in()
{
	//d_6.style.display=none;
	//d_7.style.display='';
}
function index_page_out()
{
	//d_6.style.display='';
	//d_7.style.display=none;
}