if (navigator.appVersion.indexOf("2.") != -1){
	check = false;
}

if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
	check = false;
}else{
	check = true;
}

function jumpTo(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function email(name, domain, tld, string) {
	var printemail = '<a href="mailto:'+name+'@'+domain+'.'+tld+'" title="'+string+'">'+string+'</a>';
	document.write(printemail);
}

function email_wo(name, domain, tld) {
	var printemail = '<a href="mailto:'+name+'@'+domain+'.'+tld+'" title="'+name+'@'+domain+'.'+tld+'">'+name+'@'+domain+'.'+tld+'</a>';
	document.write(printemail);
}

function showhide(id) {
	for(i = 0; e = document.getElementById(id+'_true'+i); i++) e.style.display = '';
	for(i = 0; e = document.getElementById(id+'_false'+i); i++) e.style.display = 'none';
}

function chkmail(mailstring) {
	var resmail=mailstring.match(/\b(^(\S+@).+((\..{2,10}))$)\b/gi);
	if (resmail==null){ return false; }else{ return true; }
}

function checkData(theForm) {
	theForm.action = 'inquiry-prices.php';

	if(theForm.fullname.value=="") {
		theForm.fullname.focus();
		return(false);
	}

	if(theForm.email.value!="") {
		var mailres=chkmail(theForm.email.value);
		if (mailres==false) {
			theForm.email.focus();
			return(false);
		}
	}
}
