
function fnCheckForm() {
	var email = document.getElementsByName('email')[0];
	var mobile = document.getElementsByName('phone')[0];
	var submit_button = document.getElementsByName('submit_button')[0];
	if (email.value.length > 0)
	{
		submit_button.disabled = false;
	}
	if (mobile.value.length > 0)
	{
		submit_button.disabled = false;
	}
}
function RunNavswf()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" name="nav" width="180" height="230" id="nav">\n');
	document.write('<param name="movie" value="media/nav.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="LOOP" value="false">\n');
	document.write('<embed src="media/nav.swf" width="180" height="230" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="nav">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function formValidator(){
	var searWords = document.getElementById('searWords');
	if(isAlphanumeric(searWords, "Alphanumeric only please")){	
	return true;
	}
	return false;
}

function isAlphanumeric(elem, helperMsg){
	var alphaExp = /^[ 0-9a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}
