<!--
function validatesend()
{
objForm=window.document.forms.SendRequest;
if(isEmpty(objForm.qfull_name.value) || objForm.qfull_name.value==objForm.qfull_name.id)
{
	window.alert("Please enter your full name");
	objForm.qfull_name.focus();
	return(false);
}

if(isEmpty(objForm.qemail.value) ||objForm.qemail.value==objForm.qemail.id )
{
	window.alert("Enter your email address");
	objForm.qemail.focus();
	return(false);
}

if (!(ValidEmail(objForm.qemail.value)))
{
	window.alert("Please enter valid email address");
	objForm.qemail.focus();
	return(false);
}

if(isEmpty(objForm.qcomments.value) || objForm.qcomments.value==objForm.qcomments.id)
{
	window.alert("Please enter your comments");
	objForm.qcomments.focus();
	return(false);
}
if(isEmpty(objForm.imageid.value) ||objForm.imageid.value==objForm.imageid.id )
{
	window.alert("Enter the image text given below");
	objForm.imageid.focus();
	return(false);
}

return(true);
}


function isEmpty(item)
{
	if(item=="")
	{
		return true;
	}
	else
	{
		return false;
	}
}


function ValidEmail(item)
{
	if (!ValidLength(item, 5)) return false;
	if (item.indexOf ('@', 0) == -1) return false;
	if (item.indexOf ('"', 0) != -1) return false;
	if (item.indexOf ('\'', 0) != -1) return false;
	if (item.indexOf ('.', 0) == -1) return false;
	return true;
}
//function to validate by length
function ValidLength(item, len)
{
return (item.length >= len);
}

function clr(item)
{
if(item.value==item.id)
{
item.value='';
}
else
{
item.select();
}
}

function fill(item)
{
if(item.value=='')
{
item.value=item.id;
}
}
//-->
