function gotop() {
	var s,h;
		s = parent.main.location.href;
		h = s.lastIndexOf("#");
	if (h < 0) {parent.main.location.href = s + "#Top"}
	else {parent.main.location.href = s.substring(0,h) + "#Top"}
}
function loc(locdata)
{
if (document.all) {
	parent.nav.document.all.loc.innerHTML = locdata;
}
else if (document.getElementById) {
    parent.nav.document.getElementById("loc").innerHTML = locdata;
}
}


function sname(studentname)
{
if (document.all) {
	parent.topFrame.document.all.sname.innerHTML = studentname;

}
else if (document.getElementById) {
    parent.topFrame.document.getElementById("sname").innerHTML = studentname;
}
}



function info(infodata)
{
if (document.all) {
	parent.nav.document.all.info.innerHTML = infodata;
}
else if (document.getElementById) {
    parent.nav.document.getElementById("info").innerHTML = infodata;
}
}
function newwindow(mypage,myname,scroll){
winwidth = (screen.width) ? (screen.width-100) : 0;
winhight =(screen.width) ? (screen.height-100) : 0;
LeftPosition = (screen.width) ? (screen.width-winwidth)/2 : 0;
TopPosition = (screen.width) ? (screen.height-winhight)/2 : 0;
settings = 'height='+winhight+',width='+winwidth+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}