function setPosition(anchorname,divName) {
	var x=0,y=0,h=0;
	var o=document.getElementById(anchorname);

	x=o.offsetLeft;
	y=o.offsetTop-200;
	
	o=this.document.getElementById(divName)

	if (o != null) { 
		document.all[divName].style.left = x + "px";
		document.all[divName].style.top = y + "px";
		document.all[divName].style.visibility = "visible";
	} 
}

function showDiv(id) { 
	document.all[id].style.visibility = "visible";
} 
function hideDiv(id) { 
	document.all[id].style.visibility = "hidden"; 
} 

function changeImg(imgName) 
{ 
	img = new Image; 
	img.src = imgName; 
	document.images.src = img.src; 
}

function goTo(strHTTP) {
	document.location.href=strHTTP;
}

function goToPage(strHTTP) {
	document.location.href="default.asp?id=" + strHTTP;
}

function maximize() {
	window.innerWidth = screen.width;
	window.innerHeight = screen.height;
	window.screenX = 0;
	window.screenY = 0;
	alwaysLowered = false;
}

function goPrint(strHTTP) {
	var objWin = open('', 'NewWindow', 'toolbar=no,status=no,scrollbars=yes,resizable=yes'); 
	//scrollbars=no,menubar=no,width=800,height=600,resizable=yes,toolbar=no,location=no,status=no
	objWin.document.location.href="print.asp?" + strHTTP;
}

function setCookie(c_name,value,expiredays) {
	var exdate = new Date();
		exdate.setDate(exdate.getDate()+expiredays);
		document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
} 

function getCookie(c_name) {
	if (document.cookie.length>0) {
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1) { 
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end=document.cookie.length
				return unescape(document.cookie.substring(c_start,c_end));
		} 
	}
	return "";
}

function showID(id) { 
	if (id.style.display=="none") {
		id.style.display="";
	} else { 
		id.style.display="none";
	}
} 

