<!--
function validate() {
	if (document.frmContact.enq.selectedIndex==0) {
	   alert('Please select type of enquiry');
	   document.frmContact.enq.focus();
	   return false;
		}
	if (document.frmContact.prod.selectedIndex==0) {
	   alert('Please select product');
	   document.frmContact.prod.focus();
	   return false;
		}
	if ((document.frmContact.fullname.value=="") || (document.frmContact.fullname.value==null)) {
	   alert('Please enter your name');
	   document.frmContact.fullname.focus();
	   return false;
		}
	if (document.frmContact.state.selectedIndex==0) {
	   alert('Please select your state or country');
	   document.frmContact.state.focus();
	   return false;
		}
	if ((document.frmContact.email.value=="") || (document.frmContact.email.value==null)) {
	   alert('Please enter your email address');
	   document.frmContact.email.focus();
	   return false;

		}
	var emailID=document.frmContact.email;
	
	if (echeck(emailID.value)==false){
		alert('Invalid email address');
		document.frmContact.email.focus();
		return false
		}
	if ((document.frmContact.phone.value=="") || (document.frmContact.phone.value==null)) {
	   alert('Please enter a phone contact number');
	   document.frmContact.phone.focus();
	   return false;
		}
	return true;
}
// ======================
// validate email address
//=======================
function echeck(str) {
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){

		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    return false
		 }
 		 return true					
	}
// ================
// write flash call
//=================	
function writeFlashTags(movie,height,width,flashVars,alignment,wmode,menu,backgroundcolor,id) {
//defaults
	wmode		= (wmode == undefined ? 'opaque' : wmode);
	menu		= (menu == undefined ? 'false' : menu);
	alignment	= (alignment == undefined ? 'false' : alignment);
	id			= (id == undefined ? 'false' : id);
	flashVars			= (flashVars == undefined ? '' : flashVars);
	backgroundcolor			= (backgroundcolor == undefined ? '' : backgroundcolor);
	
	if(id != false){
		var idAttribute = 'id="'+id+'"';
	} else {
		var idAttribute = '';
	}
	
	var classId = '';
	if(navigator.appVersion.toLowerCase().indexOf("msie")){
		//IE7 might act weird if this is not set...
		classId = 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	}
	
	var HTML = '';
	HTML += '<object type="application/x-shockwave-flash" data="'+movie+'" width="'+width+'" height="'+height+'" '+idAttribute+'>';
	HTML += '	<param name="movie" value="'+movie+'" />';
	HTML += '	<param name="menu" value="'+menu+'" />';
	HTML += '	<param name="flashVars" value="' + flashVars + '" />';
	HTML += '	<param name="wmode" value="'+wmode+'" />';
	
	// If wmode is opaque and a backgroundcolor has been defined
	if(backgroundcolor != '' && wmode != 'transparent') {
		HTML += '	<param name="bgcolor" value="' + backgroundcolor + '" />';
	}

	HTML += '</' + 'object>';
	document.write(HTML);
} 
// -->
