var hK;
function hurriKane(winurl,winname,winfeatures)
{
	hK = window.open(winurl,winname,winfeatures);
 	setTimeout('hK.focus();',250);
}

function IsValidEmail (strEmail){
		var bIsValid=true;
		var Space1=" ";
		var At1="@";
		var Dot1=".";
		var strTemp=new String(strEmail);
		if (strTemp.length < 5) 
				bIsValid = false;
		
		if (strTemp.indexOf(Space1)>0)
				bIsValid = false;
		
		if (strTemp.indexOf(At1)<2)
				bIsValid = false;
		
		if (strTemp.lastIndexOf(Dot1) < strTemp.indexOf(At1, 1) + 1)
				bIsValid = false;
		return bIsValid; 
}

function contact(theForm)
{
 if (theForm.name.value == "")
  {
    alert("Please enter a value for the \"name\" field.");
    theForm.name.focus();
    return (false);
  }
  
      if (theForm.phone.value == "")
  {
    alert("Please enter a value for the \"phone\" field.");
    theForm.phone.focus();
    return (false);
  }
  
	if (theForm.email.value == "")
  	{
    alert("Please enter a value for the \"Email\" field.");
    theForm.email.focus();
    return (false);
  	}
	var ValidEmail=IsValidEmail (theForm.email.value);
	if ((ValidEmail==false) && (theForm.email.value != "")){
	alert("You have entered in a invalid email address");
	theForm.email.focus();
	return (false);
	}
  
  return (true);
}
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
location_over = newImage("images/location_over.gif");
location_over004 = newImage("images/location_over-04.gif");
location_over005 = newImage("images/location_over-05.gif");
location_over006 = newImage("images/location_over-06.gif");
location_over007 = newImage("images/location_over-07.gif");
location_over008 = newImage("images/location_over-08.gif");
location_over009 = newImage("images/location_over-09.gif");
location_over010 = newImage("images/location_over-10.gif");
location_over011 = newImage("images/location_over-11.gif");
location_over012 = newImage("images/location_over-12.gif");
location_over013 = newImage("images/location_over-13.gif");
location_over014 = newImage("images/location_over-14.gif");
location_over015 = newImage("images/location_over-15.gif");
location_over016 = newImage("images/location_over-16.gif");
preloadFlag = true;
}
}