function valid_career(obj)
{
	var mailExp  = /^([_&a-zA-Z0-9-]+(\.[_&a-zA-Z0-9-]+)*@[&a-zA-Z0-9-]+\.+[&a-zA-Z0-9-]+)/;
	var valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ "
	var ok = "yes";
	var temp;
	var valida = "1234567890-./()"
	var oka = "yes";
	var tempa;

	if(obj.Name.value =="" )
	{
		obj.Name.focus();
		alert("please enter your name");
		return false;
	}

	for (var i=0; i<obj.Name.value.length; i++) {
	temp = "" + obj.Name.value.substring(i, i+1);

	if (valid.indexOf(temp) == "-1") ok = "no";
	}
	if (ok == "no") {
	alert("name field should contain characters only");
	obj.Name.focus();
	return false;
	}
if(obj.Company.value =="" )
	{
		obj.Company.focus();
		alert("please Enter your Company");
		return false;
	}
if(obj.Address.value =="" )
	{
		obj.Address.focus();
		alert("please Enter your Address");
		return false;
	}
if(obj.City.value =="" )
	{
		obj.City.focus();
		alert("please Enter your City");
		return false;
	}
	if(obj.Pin.value =="" )
	{
		obj.Pin.focus();
		alert("please Enter your Pin");
		return false;
	}
if(obj.Phone.value =="" )
	{
		obj.Phone.focus();
		alert("please Enter your Phone");
		return false;
	}

	if(obj.Email.value =="" )
	{
		obj.Email.focus();
		alert("please enter Email");
		return false;
	}	
	if(obj.Email.value !="" && !mailExp.test(obj.Email.value))
	{
		alert("invalid Email address");
		obj.Email.focus();
		return false;
	}
	
	
	if(obj.Message.value =="")
	{ 
		obj.Message.focus();
		alert("please enter Message");
		return false;
	}
	

	
}
	
function clear_field(obj)
{
	obj.message.value="";
}
function resetform(obj)
{
	obj.reset();
	return false;
}



function set_message(obj)
{
	if(obj.message.value=="")
	{
		obj.message.value="";
		obj.message.focus();
	}
}

function reset_message(obj)
{
	if(obj.message.value=="")
	{
		obj.message.value="";
	}
}