//This script controls your button rollovers

<!-- 
if (document.images) {

var homeon = new Image(110,25);
homeon.src = "conproimg/but_Home_On.gif"; 

var homeoff = new Image(100,25);
homeoff.src = "conproimg/but_Home_Off.gif"; 

var portfolioon = new Image(100,25);
portfolioon.src = "conproimg/but_Portfolio_On.gif"; 

var portfoliooff = new Image(100,25);
portfoliooff.src = "conproimg/but_Portfolio_Off.gif"; 

var checkliston = new Image(100,25);
checkliston.src = "conproimg/but_Checklist_On.gif"; 

var checklistoff = new Image(100,25);
checklistoff.src = "conproimg/but_Checklist_Off.gif"; 

var formon = new Image(100,25);
formon.src = "conproimg/but_ReqForm_On.gif"; 

var formoff = new Image(100,25);
formoff.src = "conproimg/but_ReqForm_Off.gif"; 

//General Image Preloads  

var thanks = new Image(104,24);
thanks.src = "conproimg/thankyou2.gif"; 

//var Aname = new Image(width,height);
//Aname.src = "location/image.gif"; 

} 

else {

homeon = " " 
homeoff = " " 
portfolioon = " " 
portfoliooff = " " 
checkliston = " " 
checklistoff = " " 
formon = " " 
formoff = " " 
thanks = " " 

//Aname = " " 

document.home.src =  " " 
document.portfolio.src =  " " 
document.checklist.src =  " " 
document.form.src = " " 
document.thanks.src =  " " 

//document.Aname.src =  " " 

}

// This will stop you from being framed within another sites frames

if (top.location != self.location)

{
top.location = self.location

}

//Popup Script 
//You must keep the _ between the title info or the script gets blown out

function Name1()  {  
window.open('PageName.html','Page_Statement_Info','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=550,height=350'); 
}

// Email and Name Validation Script

 function validEmail(email) 
{
invalidChars = " /:,;"
	
if (email == "") 
{						// cannot be empty
return false
}
for (i=0; i<invalidChars.length; i++) 
{	// does it contain any invalid characters?
badChar = invalidChars.charAt(i)
if (email.indexOf(badChar,0) > -1) 
{
return false
}
}
atPos = email.indexOf("@",1)			// there must be one "@" symbol
if (atPos == -1) 
{
return false
}
if (email.indexOf("@",atPos+1) != -1) 
{	// and only one "@" symbol
return false
}
periodPos = email.indexOf(".",atPos)
if (periodPos == -1) 
{					// and at least one "." after the "@"
return false
}
if (periodPos+3 > email.length)	{
// forces at least 2 characters after the "."
return false
}

if (document.Estimate.Name.value.length < 6) 
{ 
alert ("Please enter your full name");
return false;
}

return true
}

function EmailValD(conproForm) 
{
// check to see if the email's valid
if (!validEmail(conproForm.Email.value)) 
{
alert("Please recheck your email address")
conproForm.Email.focus()
conproForm.Email.select()
return false
}
	
// If we made it to here, everything's valid, so return true
return true
}
  
//  end-->