<!--

var message="Unauthorized copying, reproduction, broadcast, use or sale of any and/or all \n\nportions of this website are strictly prohibited."
function click(e) {
	if (document.all) {
	if (event.button == 2) {
	alert(message);
	return false;
	}
	}
	if (document.layers) {
	if (e.which == 3) {
	alert(message);
	return false;
	}
	}
	}
	if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	}
	document.onmousedown=click;

function getCookie(NameOfCookie)

   {
    if (document.cookie.length > 0) {
    begin = document.cookie.indexOf(NameOfCookie+"=");
        if (begin != -1) {
         begin += NameOfCookie.length+1;
         end = document.cookie.indexOf(";", begin);
             if (end == -1) end = document.cookie.length;
              return unescape(document.cookie.substring(begin, end));
             }
         }
    return null;
    }

function setCookie(NameOfCookie, value, expiredays) {

         var ExpireDate = new Date ();

         ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

         document.cookie = NameOfCookie + "=" + escape(value) +

         ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());

         }


function delCookie (NameOfCookie) {

         if (getCookie(NameOfCookie)) {
         document.cookie = NameOfCookie + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
         }
         }


function validateQuote() {
	var frm = document.forms[0];
	var emsg = "";
	
	if( frm.realname.value == "" )
		emsg+="You must enter your real name.\n";
	
	if( frm.phone.value == "" )
		emsg+="You must enter your phone number.\n";
		
	if( frm.fax.value == "" )
		emsg+="You must enter your fax number.\n";
		
	if( frm.email.value == "" )
		emsg+="You must enter your email address.\n";
		
	if( emsg != "" ) {
		window.alert("The following problems were found:\n\n" + emsg + "\nPlease correct before submitting." );
		return false;
	}
	
	return true;
}

function doSubmit() {
	if( validateQuote() ) {
		document.forms[0].submit();
	}
}
// -->
