function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function verify() {
		 if (document.contact.name.value == "") {
			alert("Please enter your name");
			if (parseInt(navigator.appVersion.substring(0,1))>=3) document.contact.name.focus();
		}  else if (document.contact.tel.value == "") {
			alert("Please enter your contact tel no");
			if (parseInt(navigator.appVersion.substring(0,1))>=3) document.contact.tel.focus();
		}  else if (document.contact.email.value == "") {
			alert("Please enter your email address");
			if (parseInt(navigator.appVersion.substring(0,1))>=3) document.contact.email.focus();
		
		} else {
			window.document.contact.submit();
		}
}
function verifyCallUs() {
	if (document.CallBack.enquiry.value == '' || document.CallBack.enquiry.value == 'enquiry') {
		alert('Please enter your enquiry');
		document.CallBack.enquiry.focus();
	} else if (document.CallBack.name.value == '' || document.CallBack.name.value == 'your name') {
		alert('Please enter your name');
		document.CallBack.name.focus();
	} else if (((document.CallBack.email_address.value == '') || (document.CallBack.email_address.value == 'email address')) && ((document.CallBack.telephone.value == '') || (document.CallBack.telephone.value == 'telephone'))) {
		alert('Please enter your email address or telephone number');
		document.CallBack.email_address.focus();
	} else if (document.CallBack.h_formValidated.value != 'true') { 
		alert("To prevent Spam submissions, please manually enter your name to proceed.")
		document.CallBack.name.focus();
	}  else  {
		if (document.CallBack.email_address.value == 'email address') {
			document.CallBack.email_address.value == ""
		}
		if (document.CallBack.telephone.value == 'telephone') {
			document.CallBack.telephone.value == ""
		}
		document.CallBack.submit();
	}
}


function verifyContactUs() {
	 if (document.short_contact.your_name.value == "") {
		alert("Please enter your name");
		if (parseInt(navigator.appVersion.substring(0,1))>=3) document.short_contact.your_name.focus();
	}  else if ((document.short_contact.contact_number.value == "") && (document.short_contact.email_address.value == "")) {
		alert("Please enter your email address or telephone number");
		if (parseInt(navigator.appVersion.substring(0,1))>=3) document.short_contact.contact_number.focus();
	} else if (document.short_contact.h_formValidated.value != 'true') { 
		alert("To prevent Spam submissions, please manually enter your name to proceed.")
		document.short_contact.your_name.focus();
	} else {
		document.short_contact.action = "http://secure4.spiderscope.com/vs/1688/scripts/sendmail_2005.asp"
		document.short_contact.submit();
	}
}

function justverify(formName) {
	document[formName].h_formValidated.value = 'true'
}
function defaultFocus(oEle, sValue){
	if(oEle.value == sValue){
		oEle.value = '';
	}
}

function defaultBlur(oEle, sValue){
	if(oEle.value == ''){
		oEle.value = sValue;
	}
}
function purchaseThis(FormName) {
	if (document[FormName].hfPrice.value == "") {
		alert("We are sorry but this item is currently unavailable for purchase online.")
	} else {
		document[FormName].submit();
	}
}
function printPage() {
  if (window.print)
    window.print()
  else
    alert("Sorry, your browser doesn't support this feature.");
}

function defaultFocus(oEle, sValue){
 if(oEle.value == sValue){
 oEle.value = '';
 }
}

function defaultBlur(oEle, sValue){
 if(oEle.value == ''){
 oEle.value = sValue;
 }
}
