function kwviewport()
{if(typeof window.innerWidth!='undefined')
{ht=window.innerHeight;}
else if(document.documentElement&&typeof(document.documentElement.clientWidth)!='undefined'&&document.documentElement.clientWidth!=0)
{ht=document.documentElement.clientHeight;}
else if(document.body&&typeof(document.body.clientWidth)!='undefined')
{ht=document.body.clientHeight;}
return ht;}
function kwheight()
{var ht=kwviewport();if(document.body.clientHeight<ht)
{document.body.style.height=ht+"px";var foot=document.getElementById('kwfooter');foot.style.position="absolute";foot.style.bottom="0px";}}
function kwgetloc(loc){var lat=loc.coords.latitude;var long=loc.coords.longitude;document.location=kw_hostdir+'/cgi/wireless_search?ll='+lat+','+long;}
function kwerrorip(){alert("Unable to determine your location");}
if((kwgeolocate===true)&&navigator!==null&&navigator!==undefined&&navigator.geolocation!==null&&navigator.geolocation!==undefined){navigator.geolocation.getCurrentPosition(kwgetloc,kwerrorip);}
