function boton1(este) { 
    if (este=='over') {
        window.about_us.src='images/img_bot_about_us.gif';
	}
	 else  {
	   window.about_us.src='images/img_bot_about_us_b.gif';
	}
}
function boton2(este) { 
    if (este=='over') {
        window.services.src='images/img_bot_services.gif';
	}
	 else  {
	   window.services.src='images/img_bot_services_b.gif';
	}
}
function boton3(este) { 
    if (este=='over') {
        window.apparel_catalog.src='images/img_bot_apparel_catalog.gif';
	}
	 else  {
	   window.apparel_catalog.src='images/img_bot_apparel_catalog_b.gif';
	}
}
function boton4(este) { 
    if (este=='over') {
        window.promotional.src='images/img_bot_promotional.gif';
	}
	 else  {
	   window.promotional.src='images/img_bot_promotional_b.gif';
	}
}
function popup(file,width,height) {
var hor;
var ver;
var ubix;
var ubiy;
ubix=width/2;
ubiy=height/2;
hor= screen.width/2-ubix;
ver= screen.height/2-ubiy;
popwin=window.open(file,"pop","left="+hor+",top="+ver+",toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height);
}


function checkForm(){
	
	var error="";
	var emailfilter  = new RegExp( /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/); // Email r.e.
	var phonefilter = new RegExp(/(\(?\d{3}\)?)?(\-| )?\d{3}(\-| )?\d{4}/); // Phone r.e.
	
	var contact_name= document.requestquote.contact_name.value;
	var organization= document.requestquote.organization.value;
	var email= document.requestquote.email.value;
	var phone_number= document.requestquote.phone_number.value;
	var comments= document.requestquote.comments.value;

	if (contact_name == "") error += "- Complete Name \n";
	if (organization == "") error += "- Complete Organization \n";
	if (email == "") error += "- Complete Email \n";
	if (phone_number == "") error += "- Complete Phone Number \n";
	if (comments == "") error += "- Complete Comments \n";
	
	if ((phone_number != "") && (!phonefilter.test(phone_number))) error += "- Invalid Telephone Number \n";
	if ((email != "") && (!emailfilter.test(email))) error += "- Invalid Email \n";
	
	if (!error) {
		return true;
	} else {
		alert("Please correct the following : \n\n" + error);
		return false;
	}
	
}
