var saveInnerWidth;
var saveInnerHeight;


if(!saveInnerWidth && document.layers)
{
window.onresize = resizeIt;
saveInnerWidth = window.innerWidth;
saveInnerHeight = window.innerHeight;
}

function resizeIt()
{
//alert("Window needs updating");
if (saveInnerWidth < window.innerWidth ||
saveInnerWidth > window.innerWidth ||
saveInnerHeight > window.innerHeight ||
saveInnerHeight < window.innerHeight ) 
{
window.history.go(0);
}
}
//***EOF***/

function getcookie(cookiename) {
 var cookiestring=""+document.cookie;
 var index1=cookiestring.indexOf(cookiename);
 if (index1==-1 || cookiename=="") return ""; 
 var index2=cookiestring.indexOf(';',index1);
 if (index2==-1) index2=cookiestring.length; 
 return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}


function showorhide(f){
if(f){visi="visible";}
else{visi="hidden";}
if(document.layers){
document.contents.left=150;
document.contents.top=0;
document.contents.visibility=visi;
}
if(document.all){
document.all.contents.style.left=150;
document.all.contents.style.top=0;
document.all.contents.style.visibility=visi;
}
if(document.getElementById){
document.getElementById("contents").style.top=0;
document.getElementById("contents").style.left=150;
document.getElementById("contents").style.visibility=visi;
}
} 



function date1(){
now = new Date();
then = new Date(" Jan 01 1970 00:00:00");
seconds=now-then/1000;
month=1+now.getMonth();
day=now.getDate();
year=now.getFullYear();
document.write( day+"-"+month+"-"+year+"");
}
