function popup(mypage, myname, w, h, scroll) 
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no';
	win = window.open(mypage, myname, winprops);
}

function check(what)
{
  
    if ((what.email.value == "") || (what.email.value == "Email"))
    {
	    alert("Please insert your email");
   	    what.email.focus();
   	    return (false);
    }
    else
    {
	    apos=what.email.value.indexOf("@");
	    dotpos=what.email.value.lastIndexOf(".");
	    lastpos=what.email.value.length-1;
	    if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
	    {
		    alert("Please insert a Valid Email Address");
	        what.email.focus();
	        return (false);
	    }
    }
    
    
    if ((what.collection.value=="") || (what.collection.value == "Collection Location"))
    {
	    alert('Please insert your collection location');
	    what.collection.focus();
	    return false;
    }
	if ((what.destination.value=="") || (what.destination.value == "Destination"))
    {
	    alert('Please insert your destination');
	    what.destination.focus();
	    return false;
    }
}

