/* Newsletter Script */
function validNewsletter(){	
	if(document.formNewsletter.emailbox.value == ""){
		alert("You need to type your email.");
		document.formNewsletter.emailbox.focus();
		return false;}
	else{
		stremail = document.formNewsletter.emailbox.value
		if((stremail.indexOf("@") == 0) ||
		   (stremail.indexOf("@") == -1) ||
		   (stremail.indexOf("@.") != -1) ||
		   (stremail.indexOf(".") == -1) ||
		   (stremail.indexOf("..") != -1) ||
		   (stremail.substring(stremail.length, stremail.length - 1) == "."))
		{
		alert("The email is incorrect.")
			document.formNewsletter.emailbox.focus();
			return false;}
		}
return true;}

/* Clear Form Value */
function clearValue(){
if (formNewsletter.emailbox.value == "Email") {
	formNewsletter.emailbox.value = "";
	}
}

/* Google Search */
function GoogleSearch(qobj){
qobj.q.value = qobj.qfront.value;
}

/* PopUp */
function openPopup(page) {
t = 0; //top magin
ws = 798; // width
hs = 525; // height
w = screen.width;
l=((w-(ws+10))/2);
Popup = window.open(page,'PopUp',' width='+ws+', height='+hs+', top='+t+', left='+l+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, menubar=no');
return false;
}