function checkFeedbackForm() {
	if(navigator.userAgent.indexOf("MSIE")==-1)
		var thisform=document.feedbackForm;
	else
		var thisform=feedbackForm;
	if (Jtrim(thisform.country.value)=='') {
                window.alert ("Please select Country/Region.")
		thisform.country.focus();
                return false;
        }
	
	
	if (Jtrim(thisform.companyname.value)=='') {
                window.alert ("Please specify company name.")
		thisform.companyname.focus();
                return false;
        }
	
	if (Jtrim(thisform.name.value)=='') {
                window.alert ("Please specify your name.")
		thisform.name.focus();
                return false;
        }
        
        if (Jtrim(thisform.email.value)=='') {
                window.alert ("Please specify your email.")
			thisform.email.focus();
                return false;
        }if(!isEmail(thisform.email.value)){
			
			  window.alert ("The email was wrong .")
			thisform.email.focus();
                return false;
	}
        
        if (Jtrim(thisform.subject.value)=='') {
                window.alert ("Please specify a subject.")
		thisform.subject.focus();
                return false;
        }
        
	if (Jtrim(thisform.message.value)=='') {
                window.alert ("Please specify message.")
		thisform.message.focus();
                return false;
        }
}

function isEmail(str){ 
	res = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; 
	var re = new RegExp(res); 
	return !(str.match(re) == null); 
}

function imgRolad(img){
	var imgurl='/common/ValidateCode?'+Math.random();
	document.getElementById(img).src=imgurl;
}

