function launch(newURL, newName, newFeatures) {
  var remote = open(newURL, newName, newFeatures);
  return remote;
}
function popuplaunch(theURL,theNAME,theWIDTH,theHEIGHT) {
  Remote = launch(theURL, theNAME, "height="+theHEIGHT+",width="+theWIDTH+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=yes,status=0,toolbar=0,title=0");
}

function validatewherebuy ()
{
if ((document.wherebuyform.name.value=='')||(document.wherebuyform.email.value=='')||(document.wherebuyform.postcode.value==''))
	{alert('Please enter your name, email and postcode before submitting');}
else
	{document.wherebuyform.submit();}
}

function validatejoinclub ()
{
if ((document.joinclubform.name.value=='')||(document.joinclubform.email.value=='')||(document.joinclubform.country.value=='')||(document.joinclubform.postcode.value==''))
	{alert('Please enter your name, email, country and postcode before submitting');}
else
	{document.joinclubform.submit();}
}


function validatewherebuyunmail ()
{
if ((document.em_subscribe_form.em_wfs_formfield_514983.value=='')||(document.em_subscribe_form.em_wfs_formfield_514984.value=='')||(document.em_subscribe_form.em_wfs_formfield_514986.value=='')||(document.em_subscribe_form.em_wfs_formfield_514985.value==''))
	{alert('Please enter your name, email, suburb and postcode before submitting');}
else
	{document.em_subscribe_form.submit();}
}

function validatejoinclubunmail ()
{
if ((document.em_subscribe_form.em_wfs_formfield_514963.value=='')||(document.em_subscribe_form.em_wfs_formfield_514894.value=='')||(document.em_subscribe_form.em_wfs_formfield_514966.value=='')||(document.em_subscribe_form.em_wfs_formfield_514964.value==''))
	{alert('Please enter your name, email, country and postcode before submitting');}
else
	{document.em_subscribe_form.submit();}
}
