<!--
self.onerror = function() {return true;}

function checker(selector) {
	selector.options.selectedIndex = selector.options.selectedIndex;
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function getWidth() {
if (screen.width == 800) 
		document.writeln("<LINK HREF='GRGSm.css' REL='stylesheet' TYPE='text/css'>");
	else
		document.writeln("<LINK HREF='GRGLg.css' REL='stylesheet' TYPE='text/css'>");
	
}
// Initializes layers and methods
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
ns6 = (document.getElementById)? true:false


// Visibility toggling for NS4/6 and IE
function show(id) {
        if (ns4) document.layers[id].visibility = "show"
			else if (ie4) document.all[id].style.visibility = "visible"
				else if (ns6) document.getElementById(id).style.visibility = "visible"		}
function hide(id) {
        if (ns4) document.layers[id].visibility = "hide"
			else if (ie4) document.all[id].style.visibility = "hidden"
				else if (ns6) document.getElementById(id).style.visibility = "hidden"	}
				
// DOM Recognition for visibility
	if (document.layers) {
		visible = 'show';
		hidden = 'hide';
	} else if (document.all) {
		visible = 'visible';
		hidden = 'hidden';
	} else if (document.getElementById) {
		visible = 'visible';
		hidden = 'hidden';
	}

function test(src){
     var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
     var regex = new RegExp(emailReg);
     return regex.test(src);
}

function checkFields() {
	missinginfo = "";
	fieldForFocus = null;
	if (document.form1.firstname.value == "") {
		missinginfo += "- First Name\n";
		fieldForFocus = document.form1.firstname;
	}
	if (document.form1.lastname.value == "") {
		missinginfo += "- Last Name\n";
		if (fieldForFocus == null)
		fieldForFocus = document.form1.lastname;
	}
	if (!(test(document.form1.email.value))) {
		missinginfo += "- Valid Email address\n";
		if (fieldForFocus == null)
		fieldForFocus = document.form1.email;
	}
	if (document.form1.msg.value == "") {
		missinginfo += "- Message Text\n\n";
		if (fieldForFocus == null)
		fieldForFocus = document.form1.msg;
	}



	if (missinginfo != "") {

		text = 'The following information is required\n\n';
		text += missinginfo;

		alert(text);

	return false;
	}
	else return true;
}



//-->

