function check()
{
        var name=document.suggest.username.value;
        var email=document.suggest.mail.value;
        var country=document.suggest.country.value;
        var city=document.suggest.city.value;

        if(name=='')
        {
                alert("Enter your name");
		document.suggest.username.focus();
                return false;
        }
        if(email=='')
        {
                alert("Enter your email");
		document.suggest.mail.focus();
                return false;
        }
        if(country=='')
        {
                alert("Enter Country");
		document.suggest.country.focus();
                return false;
        }
        if(city=='')
        {
                alert("Enter City");
		document.suggest.city.focus();
                return false;
        }
}       

function validate()
{
	//alert("inside function");
	var dd = document.time1.day.options[document.time1.day.selectedIndex].value;
	var mm = document.time1.month.options[document.time1.month.selectedIndex].value;
	var yy = document.time1.year.value;
	if(yy<1 || parseInt(yy)<1970 || parseInt(yy)>2037)
	{
		alert("Invalid year, please enter any year between 1970 and 2037");
		document.time1.year.focus();
		return false;
	}	
	var check = checkdays(yy,mm,dd);
	if(check==1)
	{
		alert("Please check the date you have selected");
		document.time1.month.focus();
		return false;
	}
	/*if((document.time1.zone1.options[document.time1.zone1.selectedIndex].value) == (document.time1.zone2.options[document.time1.zone2.selectedIndex].value))
	{
		alert("Please select different cities to calculate time");
		document.time1.zone2.focus();
		return false;
	}*/
}

function checkdays(yr,mon,day)
{
	var i = yr%4;
	if((mon==04 && day>30) || (mon==06 && day>30) || (mon==09 && day>30) || (mon==11 && day>30) || (i==0 && mon==2 && day>29) || (i!=0 && mon==2 && day>28))
	return(1);
}

//function openWin()
//{
//open("/dst.html","","status=no,resizable=no,height=400,width=600,scrollbars=yes");
//}
