<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled For Content Security";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(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=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

function validateForm() {

var errorEmail = "Sorry. You must enter a valid email address in order to receive your job reference number.";
var errorCEmail = "You must confirm Your Email Address";
var errorContact = "You must enter a valid contact name in order to continue.";
var errorCompanyName = "You must enter a valid company name in order to continue.";
var errorTypeofMedia = "Please select a type of media";
var errorFailure = "Please describe the circumstances surrounding your media failure.";
var errorPhone = "Please enter your telephone number 000-000-0000 to continue.";
var errorHearofUs = "Please tell us how you found CBL";
var x = 0;

if (document.solution.CompanyName.value == "") {
        alert(errorCompanyName);
        return false;
        }
else if (document.solution.Contact1.value == "") {
        alert(errorContact);
        return false;
        }
else if (document.solution.Tel1.value.length > 12) {
        alert(errorPhone);
        return false;
        }
         
else if (document.solution.Tel1.value.length < 10) {
        alert(errorPhone);
        return false;
        }
 
else if (document.solution.Tel1.value.indexOf("-") == -1) {
        alert(errorPhone);
        return false;
        }
                 
else if (document.solution.Tel1.value == "") {
        alert(errorPhone);
        return false;
        }
 

else if (document.solution.Email1.value.indexOf("@") == -1) {
	alert(errorEmail);
	return false;
	}

else if (document.solution.Email1.value == "") {
	alert(errorEmail);
	return false;
	}

else if (document.solution.HearofUs.value == "") {
        alert(errorHearofUs);
        return false;
        }

else if (document.solution.TypeofMedia1.selectedIndex == "") {
	alert(errorTypeofMedia);
	return false;
	}

else if (document.solution.Failure.value == "") {
        alert(errorFailure);
        return false;
        }		
else return true;
}

// --> 

