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.Address1.value =="" )
	{
		obj.Address1.focus();
		alert("please enter your Address");
		return false;
	}
if(obj.Floor.value =="" )
	{
		obj.Floor.focus();
		alert("please enter your Floor");
		return false;
	}
if(obj.Ownership.value =="" )
	{
		obj.Ownership.focus();
		alert("please enter your Ownership");
		return false;
	}
if(obj.Furnishing.selectedIndex == 0){
	  	obj.Ownership.focus();
		alert("please Select Furnishing");
		return false;	
	}

if(obj.Area.value =="" )
	{
		obj.Area.focus();
		alert("please enter your Area");
		return false;
	}
if(obj.Price.value =="" )
	{
		obj.Price.focus();
		alert("please enter your Price");
		return false;
	}

	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.Telephone.value =="" )
	{
		obj.Telephone.focus();
		alert("please enter your Telephone");
		return false;
	}
if(obj.Mobile.value =="" )
	{
		obj.Mobile.focus();
		alert("please enter your Mobile");
		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;
	}
	
		

	
}
	
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="";
	}
}