function checkvalues()
{
    var selparkid = "";
    var j=0;
    for (i=0;i<document.all.Form1.length;i++)
    {
	    var el=document.all.Form1.elements[i];
	    if (el.type=="checkbox") 
	    {
	        if (el.checked)
	        {
		        j=j+1;
	        }
	    }
    }
    if (j==0)
    {
	    alert("Atleast one park should be selected");
	    return false;
    }
    if (j>5)
    {
	    alert("You have selected more than 5 park. Limit your search up to 5 parks.");
	    return false;
    }
    else
    {	
	    return true;
    }
}

function changestyle1(itm)
{
alert(itm.value);
return true;
}

function parkSelectedIndexChanged()
{
	var obj = document.getElementById("divParkList");
	obj.style.display = "none"; 	
}

function pausecomp(millis) 
{
date = new Date();
var curDate = null;

do { var curDate = new Date(); } 
while(curDate-date < millis);
} 
