function popup(url,nme,hgt,wgt)
		{
		var params='toolbar=no,height='+hgt+',width='+wgt+',location=no,scrollbars=yes,status=no,menubar=no,resizable=no';
		if(self && self.screen && self.screen.width)
			{
			params+=",left="+((self.screen.width-wgt)/2);
			params+=",top="+((self.screen.height-hgt)/2);
			}
		window.open(url,nme,params);

		}


function navto(url)
		{
		if (url != '') {
			this.location.href = url;
		}
		}
		

function openWindowSmall(target){
		window.open('',target,'width=260,height=260,resizable=0,status=0,toolbar=0,scrollbars=0');
	}
function openWindowLarge(target){
		window.open('',target,'width=610,height=400,resizable=0,status=0,toolbar=0,scrollbars=1');
	}




function validateremform(theForm)
{
// check to see if the field is blank
	if (theForm.firstname.value == "")
	{
	alert("Please enter your first name.");
	theForm.firstname.focus();
	return (false);
	}
	
	// check to see if the field is blank
	if (theForm.lastname.value == "")
	{
	alert("Please enter your last name.");
	theForm.lastname.focus();
	return (false);
	}
	
	if (theForm.home_phone.value == "")
	{
	alert("Please enter your home telephone number.");
	theForm.home_phone.focus();
	return (false);
	}
	
	if (theForm.email.value == "")
	{
	alert("Please enter your email address.");
	theForm.email.focus();
	return (false);
	}
	
	// test if valid email address, must have @ and .
var checkEmail = "@.";
var checkStr = theForm.email.value;
var EmailValid = false;
var EmailAt = false;
var EmailPeriod = false;
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkEmail.length;  j++)
{
if (ch == checkEmail.charAt(j) && ch == "@")
EmailAt = true;
if (ch == checkEmail.charAt(j) && ch == ".")
EmailPeriod = true;
	  if (EmailAt && EmailPeriod)
		break;
	  if (j == checkEmail.length)
		break;
	}
	// if both the @ and . were in the string
if (EmailAt && EmailPeriod)
{
		EmailValid = true
		break;
	}
}
	if (!EmailValid)
	{
	alert("Please enter a valid email address.");
	theForm.email.focus();
	return (false);
	}
	
if (theForm.destination_city.value == "")
	{
	alert("Please enter the destination city.");
	theForm.destination_city.focus();
	return (false);
	}
	
	if (theForm.volume.value == "")
	{
	alert("Please enter the estimated volume.");
	theForm.volume.focus();
	return (false);
	}



}