w3c = document.getElementById ?true:false;
iex = document.all ?true:false;
ns4 = document.layers ?true:false;
supported = (w3c || iex || ns4) ?true:false;
if(!supported){
	window.location.href = '/redirect.html';
}

if(document.layers){
	origWidth = window.innerWidth;
	origHeight = window.innerHeight;
	window.onResize = fixNetscape;
}
function fixNetscape(){
	if(origWidth != window.innerWidth || origHeight != window.innerHeight){
		window.location.reload();
	}
}


function emailvalidation(entered, alertbox)
{
with (entered)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2)
{if (alertbox) {alert(alertbox);} return false;}
else {return true;}
}
}

function verify(element1, element2, element3){
var passed=false

if (element1.value==''){
alert("Please enter your Full Name.")
element1.focus()
}
else if (element2.value==''){
alert("Please enter your E-mail address.")
element2.focus()
}
else if (element3.value==''){
alert("Please write your comments/suggestions.")
element3.focus()
}
else
passed=true

return passed

}
