
//for send Mail
	var b="";
	function function2()
	{
		b=String(Math.round(Math.random()*8+1));
		b+=String(Math.round(Math.random()*8+1));
		b+=String(Math.round(Math.random()*8+1));
		b+=String(Math.round(Math.random()*8+1));
		document.getElementById('no2').value=b; 
	}
	function Trim2(str) 
	{
		return str.replace(/\s/g,"");
	}
	function IsBlank2(obj, msgstr)
	{
		if(Trim(obj.value)=="")
		{
			alert(msgstr);
			obj.focus();
			return false;
		}
		return true;
	}
	function IsEmail2(obj, string, varmessage) 
	{
		if(string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
			return true;
		else
		{
			alert(varmessage);
			obj.focus();
			return false;
		}
	}
	function CheckNo2(ob, msg)
	{
		if(ob.value==document.getElementById('no2').value){
			return true;
		}
		else{
			alert(msg);
			ob.focus();
			return false;
		}
	}
	function valid2()
{
	if(document.form2.name2.value=="Name")
	{
		alert("Please enter your Name");
		document.form2.name2.value="";
		document.form2.name2.focus();
		return false;
	}
	if(document.form2.email2.value=="Email")
	{
		alert("Please enter Valid Email");
		document.form2.email2.value="";
		document.form2.email2.focus();
		return false;
	}
	if (!IsBlank2(document.form2.name2,"Please enter your Name")) return false;
	if (!IsEmail2(document.form2.email2, document.form2.email2.value,"Please enter valid Email")) return false;
	if(document.form2.comments2.value=="Your description here...")
	{
		alert("Please enter Description");
		document.form2.comments2.value="";
		document.form2.comments2.focus();
		return false;
	}
	if (!IsBlank2(document.form2.comments2,"Please Insert Description")) return false;
	if (!CheckNo2(document.form2.confirmno2,"Please Enter Same No as above")) return false;
	return true;
}

function Trim(val)
{
	return val.split(" ").join("");
}