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 getObj(obj) {
	var locObj;
	if (typeof obj == "string") 
		locObj = eval("document." + rangeTxt + obj + styleTxt);
	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 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";
}
