var show,hide;
var rangeTxt = "";
var styleTxt = "";
if (document.all) {
	rangeTxt = "all.";
	styleTxt = ".style";
	show = "visible";
	hide = "hidden";
}
else {
	show = "show";
	hide = "hide";
}
function getWindowWidth() {
  if (document.layers) {return window.innerWidth}
  else {return document.body.clientWidth}
}
function getWindowHeight() {
  if (document.layers) {return window.innerHeight}
  else {return document.body.clientHeight}
}
function isObj(obj) {
	if (!window.obj)
		return false;
	else
		return true;
}
function getObj(name) {
	var locObj;
	if (typeof name == "string") {
		if (document.getElementById) {
			locObj = document.getElementById(name).style;
		}
		else if (document.all) {
			locObj = document.all.name.style;
		}
		else if (document.layers) {
			locObj = document.layers[name];
		}
	}
	else 
		locObj = obj;
	return locObj;
}
function posObj(obj,x,y) {
	var locObj = getObj(obj);
	if (document.all) {
		locObj.pixelLeft = x;
		locObj.pixelTop = y; }
	else
		locObj.moveTo(x,y);
}
function moveObj(obj,x,y) {
	var locObj = getObj(obj);
	if (document.all) {
		locObj.pixelLeft += x;
		locObj.pixelTop += y; }
	else
		locObj.moveBy(x,y);
}
function showObj(obj) {
	var locObj = getObj(obj);
	locObj.visibility = show;
}
function hideObj(obj) {
	var locObj = getObj(obj);
	locObj.visibility = hide;
}
function setObjZ(obj,newIndexVal) {
	var locObj = getObj(obj);
	locObj.zIndex = newIndexVal;
}
function setObjBG(obj, newValue) {
	var locObj = getObj(obj);
	locObj.background = newValue;
}
function getObjBG(obj) {
	var locObj = getObj(obj);
	return locObj.background;
}
function randomstring(instring) {
if (!ver4) { return };
var newstr = "";
var len = instring.length;
var randint = 0;
var i = 0; 
var tempchr = "";
do 
{ 
	randint = Math.floor(Math.random() * (instring.length - 0.1));
	tempchr = instring.charAt(randint);
	newstr = newstr + tempchr;
	instring = instring.replace(tempchr,"");
	i+=1; 
} 
while(i < len); 
return newstr;
}
function showHand(whichEl) {
whichEl=getObj(whichEl);
whichEl.cursor="hand";
}
