var nn4 = (document.layers)? true:false;
var ie4 = (document.all)? true:false;
var dom = (document.getElementById)? true:false;
function ysPos(what){
	if(ie4){
		return yIE(eval('document.'+what));
	} else if(nn4){
		return eval('document.'+what+'.y');
	} else if(dom){
		return parseInt(yIE(eval('document.getElementById("' + what + '")')));
	}
}

function ysPosnn4(what) {
	return eval('document.lag'+globalId+'.document.'+what+'.y');
}

function xsPos(what){
	if(ie4){
		return xIE(eval('document.'+what));
	}else if(nn4){
		return eval('document.'+what+'.x');
	}else if(dom){
		return parseInt(xIE(eval('document.getElementById("' + what + '")')));
	}
}

function yIE(what) {
	if(what.offsetParent) {
		return parseInt((what.offsetTop + yIE(what.offsetParent)));
	} else {
		return parseInt(what.offsetTop);
	}
}
function xIE(what) {
	if(what.offsetParent) {
		return parseInt((what.offsetLeft + xIE(what.offsetParent)));
	} else {
		return parseInt(what.offsetLeft);
	}
}

function getInsideWindowWidth() {
	if (document.layers) {
		return window.innerWidth
	} else {
		return document.body.clientWidth
	}
}

function getInsideWindowHeight() {
	if (document.layers) {
		return window.innerHeight
	} else {
		return document.body.clientHeight
	}
}

function getObjWidth(obj) {
	if (document.layers) {
		return obj.clip.width
	} else {
		return obj.clientWidth
	}
}

function getObjHeight(obj) {
	if (document.layers) {
		return obj.clip.height
	} else {
		return obj.clientHeight
	}
}

function tdOver(field){
		field.className="tdOverStyle";
}

function tdOut(field){
		field.className="tdOutStyle";
}

		