function err_handler(msg) {return true;}
window.onerror = err_handler;

function content(item,mode) {
    if( item.value!="" && item.title=="" ) item.title=item.value;
    if( item.value=="" && !mode ) {
        item.value = item.title;
    } else if( item.value==item.title && mode ) {
        item.value = "";
    }
}

function checkBrowser(page){
	var ua = navigator.userAgent.toLowerCase();
	isIE = (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1 && ua.indexOf("webtv") == -1);
	var obj = document.getElementById('fl');

	if (navigator.appVersion.indexOf("MSIE 6") != -1){
		obj.style.position = "relative";
		obj.style.top = "-30px";
	}

}

function get(obj){
	return document.getElementById(obj);
}

function getsize() {
     var x, y;
     if( self.innerHeight ) {
          x = self.innerWidth; y = self.innerHeight;
     } else if( document.documentElement && document.documentElement.clientHeight ) {
          x = document.documentElement.clientWidth; y = document.documentElement.clientHeight;
     }  else if( document.body ) {
          x = document.body.clientWidth; y = document.body.clientHeight;
     }
     return { "width":x, "height":y };
}

function resize_win(){
var root = get('bod2');
var body = getsize();
if(root.offsetHeight > body.height){
root.style.height = 'auto';
} else {
root.style.height = body.height+"px";
}
}