/*function click() {
	if (event.button==2) {
		alert('Legacy Manufacturing Site Copyright ©2007.');
	}
}
document.onmousedown=click
<!-- 
//Disable right click script (the one above seems to work better in IE) 
var message="Legacy Manufacturing Site Copyright ©2007."; 
function clickIE(){
	if (document.all){
		alert(message);
		return false;
	}
} 
function clickNS(e){
	if (document.layers||(document.getElementById&&!document.all)){ 
		if (e.which==2||e.which==3) {
			alert(message);
			return false;
		}
	}
} 
if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
} 
else{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
} 
document.oncontextmenu=new Function("return false") 

//Disable select-text script (IE4+, NS6+)
function disableselect(e){
	return false;
} 
function reEnable(){
	return true;
} 
//if IE4+
document.onselectstart=new Function ("return false") 
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}*/
// -->

<!--
/*
*/
var message="Legacy Manufacturing Site Copyright ©2011."; //edit this message to say what you want



function clickIE()
{
if (event.button==0) {alert(message); return false;}
}
function clickNS(e)
{
if (document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3)
{
alert(message);return false;
}
}
}

if(window.navigator.appName=="Netscape")
{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
document.oncontextmenu=new Function("return false")
}
else if (window.navigator.appName=="Microsoft Internet Explorer")
{
document.oncontextmenu=clickIE;
}
else if (window.navigator.appName=="Opera")
{

}
else if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}
else
{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}

//



function openPopUp(t_loc, i_hi, i_wi) {
	var i_screenWidth, i_screenHeight, i_winHeight, i_winWidth, i_top, i_left
	
	i_screenWidth = screen.width;
	i_screenHeight = screen.height;
	
	if((i_hi == 0) || (i_hi == "") || (i_hi == "undefined")) {	
		//alert("default height!");
		i_winHeight = 570;
	}
	else {
		i_winHeight = i_hi;
	}
	
	if((i_wi == 0) || (i_wi == "") || (i_wi == "undefined")) {
		//alert("default width!");
		i_winWidth = 625;
	}
	else {
		i_winWidth = i_wi;
	}			
	
	i_top = 1;
	i_left = (i_screenWidth-i_winWidth)/2;
	
	window.open(t_loc, "_blank", "height=" + i_winHeight + ",width=" + i_winWidth + ",top=" + i_top + ",left=" + i_left);
	
	return;
}

function gotoContactUs(t_contactLoc) {
	var i_screenWidth, i_screenHeight, i_winHeight, i_winWidth, i_top, i_left
	
	i_screenWidth = screen.width;
	i_screenHeight = screen.height;
	i_winHeight = 570;
	i_winWidth = 675;
	
	i_top = 1;
	i_left = (i_screenWidth-i_winWidth)/2;
	
	window.open("/contact_us/ContactType.asp?contactLoc=" + t_contactLoc, "_blank", "scrollbars=1,height=" + i_winHeight + ",width=" + i_winWidth + ",top=" + i_top + ",left=" + i_left);
	
	return;
}

function gotoServiceCenter() {
	var i_screenWidth, i_screenHeight, i_winHeight, i_winWidth, i_top, i_left
	
	i_screenWidth = screen.width;
	i_screenHeight = screen.height;
	i_winHeight = 570;
	i_winWidth = 625;
	
	i_top = 1;
	i_left = (i_screenWidth-i_winWidth)/2;
	
	window.open("/contact_us/ServiceCenter/ContactType.asp", "_blank", "height=" + i_winHeight + ",width=" + i_winWidth + ",top=" + i_top + ",left=" + i_left);
	
	return;
}

function IsNumeric(t_string) {
   var t_validChars = "0123456789.";
   var b_num = true;
   var c_char;
 
   for (i = 0; i < t_string.length && b_num == true; i++) { 
      c_char = t_string.charAt(i); 
      if (t_validChars.indexOf(c_char) == -1) {
         b_num = false;
      }
   }
   return b_num;   
}

function checkemail(str){
//var str=document.validation.emailcheck.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str)){
		testresults=true;
	}
	else{
	
		testresults=false;
	}
	return testresults;
}

/*
Auto tabbing script- By JavaScriptKit.com
http://www.javascriptkit.com
This credit MUST stay intact for use
*/
function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus()
}
