function formvalidate(a){
	if(alltrim($F('email'))!="")
	{
		if(!checkEmail($F('email')))
		{
			$('email').focus();
			$('email').select();
			return false;
		}
	}
	return true;
}
function set_default_date()
{
	var mydate=new Date();
	var theyear=mydate.getYear();
	if (theyear < 1000)
	{
		theyear+=1900;
	}
	var theday=mydate.getDay();
	var themonth=mydate.getMonth()+1;
	if (themonth<10)
	{
		themonth="0"+themonth;
	}
	var theday=mydate.getDate();
	if (theday<10)
	{
		theday="0"+theday;
	}	
	
	//////EDIT below three variable to customize the format of the date/////
	
	var displayfirst=theday
	var displaysecond=themonth
	var displaythird=theyear

////////////////////////////////////

document.complain_form.datesign.value=displayfirst+"/"+displaysecond+"/"+displaythird;
}