function CheckSearchForm()
{
        SearchKey = document.SearchForm.SearchKey.value

        if(SearchKey=="")
        {
                alert("! יש להזין ערך חיפוש");
                return false;
        }

        if(SearchKey.length<3)
        {
                alert("! ערך החיפוש צריך להכיל יותר מ-2 תוים");
                return false;
        }

        document.SearchForm.submit()
}

function UserMess()
{
        ggg=window.open ("./UserMess.asp", 'Mess', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=550')
}
function RoomAvial()
{
        liz=window.open ("./RoomAvailSRC.asp", 'liz', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=160,height=320')
}

function creatiframe(fname)
{
	document.getElementById('mapdiv').innerHTML = "<iframe width='450' frameborder='0' scrolling='No' marginheight='0' marginwidth='0' name='Search_Page' id='Search_Page' height='248' src='" + fname + "'></iframe>";

}

function showBan(divName,width,height,wmode,src,spec,xparams) {
	var d=document.getElementById(divName);
	d.innerHTML='<OBJECT '+spec+' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0	 WIDTH='+width+' HEIGHT='+height+'><PARAM NAME=movie VALUE="'+src+'"><PARAM NAME=wmode value='+wmode+'><PARAM NAME=quality VALUE=high>'+xparams+'<EMBED src="'+src+'" quality=high WIDTH='+width+' HEIGHT='+height+' WMODE='+wmode+' TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED></OBJECT>';
}

