function closediv(num){
	document.all("showdetailes" + num).style.display="none";
}
function printpage(num) {
	var left = Math.floor( (screen.width - 710) / 2);
	var top = Math.floor( (screen.height - 400) / 2);
	var winParms = "top=" + top + ",left=" + left + ",height=400,width=710,scrollbars=yes";
	var win = window.open("printpage.asp", "print", winParms);
	win.focus();
}
function emailpage() {
	var left = Math.floor( (screen.width - 710) / 2);
	var top = Math.floor( (screen.height - 400) / 2);
	var winParms = "top=" + top + ",left=" + left + ",height=400,width=710,scrollbars=yes";
	var win = window.open("emailpage.asp", "email", winParms);
	win.focus();
}
function check(obj,num,sec) {
	if (obj.checked)
		act.location="saveid.asp?id=" + num + "&sec=" + sec;
	else
		act.location="saveid.asp?del=" + num + "&sec=" + sec;
}
function show(num,numid,sec){
	if (document.all("showdetailes" + num).style.display=="none")
	{
		document.all("showdetailes" + num).style.display="";
		act.location="addcount.asp?count=ViewCount&id=" + numid + "&sec=" + sec;
	}
	else {
		document.all("showdetailes" + num).style.display="none";
	}
}
function gotologin(sec,sid,num) {
	location.href="loginpage.asp?sec=" + sec + "&theSession=" + sid + "&pid=" + num;
}