{	  
 imgsrc1on= new Image;
 imgsrc1on.src="images/Home2.gif";
 imgsrc2on= new Image; imgsrc2on.src="images/Specs2.gif";
 imgsrc3on= new Image;
 imgsrc3on.src="images/kit2.gif";
 imgsrc4on= new Image;
 imgsrc4on.src="images/faq2.gif";
 imgsrc5on= new Image;
 imgsrc5on.src="images/Photos2.gif";
 imgsrc6on= new Image;
 imgsrc6on.src="images/Links2.gif"; 
 imgsrc1off= new Image;
 imgsrc1off.src="images/Home1.gif";
 imgsrc2off= new Image; imgsrc2off.src="images/Specs1.gif";
 imgsrc3off= new Image;
 imgsrc3off.src="images/kit1.gif";
 imgsrc4off= new Image;
 imgsrc4off.src="images/faq1.gif";
 imgsrc5off= new Image;
 imgsrc5off.src="images/Photos1.gif";
 imgsrc6off= new Image;
 imgsrc6off.src="images/Links1.gif"; 
}
function ButtonModeON(imgName)
{	
	imgOn=eval(imgName + "on.src");	
	document.images[imgName].src= imgOn;	
}
function ButtonModeOFF(imgName)
{
	imgOff=eval(imgName + "off.src");
	document.images[imgName].src= imgOff;	
}
function openNewWindow(lsHTMLFile,iWidth,iHeight) 
{	
	windowName = new String(Math.round(Math.random() * 100000));			
	winobj = window.open(lsHTMLFile,windowName,"toolbar=0,location=0,directories=0,status=1,scrollbars=1,top=0,left=0,resizable=1,width="+iWidth+",height="+iHeight);		
	winobj.focus();
}
function openNewWindowPos(lsHTMLFile,iWidth,iHeight,iX,iY) 
{		
	windowName = new String(Math.round(Math.random() * 100000));			
	winobj = window.open(lsHTMLFile,windowName,"toolbar=0,menubar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1,top="+iY+",left="+iX+",width="+iWidth+",height="+iHeight);		
	winobj.focus()		
}		
function openNewWindowPosX(lsHTMLFile,iWidth,iHeight,iX,iY) 
{		
	windowName = new String(Math.round(Math.random() * 100000));				
	winobj = window.open(lsHTMLFile,windowName,"toolbar=0,menubar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1,top="+iY+",left="+iX+",width="+iWidth+",height="+iHeight);		
	winobj.focus()		
}		
function GetAnImageForHomePage(imagename)
{		
	alert("Admin/FTPSite/HomePhotos/"+imagename);
	document.writeln('<p><img src="Admin/FTPSite/HomePhotos/"+imagename alt=imagename BORDER="3" align="center"></p>');				
	return true;
}		
function GetPopUpCoordsX(popWD,flag)
{
	if (parseInt(flag) == 1)
		{
			var winLFT = window.screenLeft; 
			var winWD = document.body.offsetWidth - 5;
			var centerL = winLFT + (winWD/2);
			var retValue 	= centerL - (popWD/2);
			return retValue;
		}
	else
		{
			var winLFT = window.screenLeft; 			
			return winLFT;
		}		
}
function GetPopUpCoordsY(popHT,flag)
{	
	var	winHT = document.body.offsetHeight-200;
	var winTOP = window.screenTop; 	
	var centerT = winTOP + (winHT/2);
	var retValue 	= centerT - (popHT/2);
	return retValue;	
}	
function SendIT(theEMail)
{
	var theURL_File = "contact_email.asp?theEmailAddy="+theEMail;
	document.Form.action = "Javascript:openNewWindowPos('"+ theURL_File + "',600,340,GetPopUpCoordsX(600,1),GetPopUpCoordsY(340,1))";	
	document.Form.submit();	
}
function GoTo_pCADD(theURL)
{	
	document.Form.action = "Javascript:openNewWindowPos('"+ theURL + "',800,600,GetPopUpCoordsX(800,1),GetPopUpCoordsY(600,1))";	
	document.Form.submit();		
}
function GoToURL (theURL)
{
location.href=theURL;
}
function ValidEmail(item) 
{
var objRegExp = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{2,4}\.[0-9]{2,4}\.[0-9]{2,4}\.[0-9]{2,4}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,4}))$/;
  if(objRegExp.test(item))
	{
		return true;
	}
	else
	{
		alert("Please enter a Valid Email Address");
		return false;
	}					
} 	
function OnMouseOverX(obj)
{
	obj.className = "V8_Blue8_Underline";		
}
function OnMouseOutX(obj)
{
	obj.className = "V8_Blue8";		
}