// JavaScript Document



function dvJumpMenu(obj)
{
	if (obj.selectedIndex>1){
	var hr=obj.options[obj.selectedIndex].value
	//return false
	//eval("location.href='" + obj.options[obj.selectedIndex].value + "'");
	window.open(hr,"FirstRand","");
}
}

function dvJumpMenu1(obj)
{
	if (obj.selectedIndex>1)
	eval("location.href='" + obj.options[obj.selectedIndex].value + "'");
}


function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#CDE0EB";
}
}

function cOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FFFFFF";
}
}

function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function editBoxText(theForm)
{
  text=theForm.email.value;
  text = text.toLowerCase()
  email = text
  
	if ((theForm.name.value=="") || (theForm.address.value=="") || (theForm.tel.value=="")
		|| (theForm.fax.value=="") || (theForm.company.value=="") || (theForm.email.value==""))
		{
		alert("Please fill all fields marked with an *");
		return false;
		}
	charynL=/[a-zA-Z]/;
    //if (isNaN(theForm.tel.value) || isNaN(theForm.fax.value))
    if ((charynL.test(theForm.tel.value)) || (charynL.test(theForm.fax.value)))
  	{
	alert("Please use only numbers in the Telephone & Fax fields.");
	return false;
  	}
  	    if (theForm.cell.value!="")
  	{
  		//if (isNaN(theForm.cell.value))
  		if (charynL.test(theForm.cell.value))
  		{
			alert("Please use only numbers in the Telephone & Fax fields.");
			return false;
		}
  	}
  	
	charyn=/[0-9()+/\{}]/;
	if (charyn.test(theForm.name.value))
	{
		alert("Please check your name there seem to be numerals used");
		return false;
	}
  if (text.indexOf("@")<2){
    alert(" This email address seems wrong. Please"
    +" check the .prefix and '@' sign.");
    return false;
  }
  if (text.indexOf(".")<2)
  {
     alert(" This email address seems wrong. Please"
     +" check the suffix. (It should include a 'domain name' & .com, .edu,"
     +" .net, .org, .gov, .co.uk, .nl, .mil, co.za etc...)");
     return false;
  }
  return (true);
}