function checkURL(file) 
{
        if (file.indexOf("#")>=0)
        {
           var parsed=file.split('#');
           return isAnchorPresent(parsed[1]);
        }
	return false;
}
function isAnchorPresent(anchorName)
{
    for (i=0;i<document.anchors.length;i++)
    {  
        if (document.anchors[i].name==anchorName)
	    return true;
    }
    pop("<b>This hotel is either not included in the query results below or its search is in progress</b>.  Try to click again after the search is done OR expand the search to more hotels (see form at the bottom of this page). "+anchorName+" ","red");
    

    return false;
}
function sload(file) 
{
   checkURL(file);
	try
	{
	        window.location.href = file;
	}
	catch (errors)
	{
		alert("href Error:"+errors);
                return;
	}
}
