<!--
function getfile(filename,divname,layername) 
{
   var nn4 = (document.layers);
   var nn6 = (document.getElementById && !document.all);
   var ie4 = (document.all && !document.getElementById);
   var ie5 = (document.all && document.getElementById);

   if (nn4){
      eval('parent.document.' + divname + '.layers.' + layername + '.load(filename, parent.document.' + divname + '.layers.' + layername + '.clip.width)');
   }
   else if (ie4) eval('parent.document.all.' + divname + '.document.frames[layername].location = filename');
   else if (ie5 || nn6) parent.document.getElementById(layername).src = filename;
}

function winopen(wurl,wname,wfeatures)
{
   newWindow=window.open(wurl,wname,wfeatures);
}


function getMilliseconds() {

dot = new Date(0);
now = new Date();
t = (now - dot);
return(t);

}


function getHyperloadDcr(dcr){
dcr = dcr +"?" +getMilliseconds();
return dcr;

}

function PrintGameTag(dcr, width, height, bgcolor, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8, sw9, swlist) {
	if (!(sw1)) { sw1 = ""; }
	if (!(sw2)) { sw2 = ""; }
	if (!(sw3)) { sw3 = ""; }
	if (!(sw4)) { sw4 = ""; }
	if (!(sw5)) { sw5 = ""; }
	if (!(sw6)) { sw6 = ""; }
	if (!(sw7)) { sw7 = ""; }
	if (!(sw8)) { sw8 = ""; }
	if (!(sw9)) { sw9 = ""; }
	if (!(swlist)) { swlist = ""; }
	
	document.write('   <OBJECT CLASSID="clsid:166B1BCA-3F9C-11CF-8075-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '">	');
	document.write('   <PARAM NAME="SRC" VALUE="' + dcr + '">	');
	document.write('   <PARAM NAME="BGCOLOR" VALUE="' + bgcolor + '">	');
	document.write('   <PARAM NAME="SW1" VALUE="' + sw1 + '">	');
	document.write('   <PARAM NAME="SW2" VALUE="' + sw2 + '">	');
	document.write('   <PARAM NAME="SW3" VALUE="' + sw3 + '">	');
	document.write('   <PARAM NAME="SW4" VALUE="' + sw4 + '">	');
	document.write('   <PARAM NAME="SW5" VALUE="' + sw5 + '">	');
	document.write('   <PARAM NAME="SW6" VALUE="' + sw6 + '">	');
	document.write('   <PARAM NAME="SW7" VALUE="' + sw7 + '">	');
	document.write('   <PARAM NAME="SW8" VALUE="' + sw8 + '">	');
	document.write('   <PARAM NAME="SW9" VALUE="' + sw9 + '">	');
	document.write('   <PARAM NAME="SWLIST" VALUE="' + swlist + '">	');
	document.write('   <PARAM NAME="SWREMOTE" VALUE="swSaveEnabled=\'false\' swVolume=\'false\' swRestart=\'false\' swPausePlay=\'false\' swFastForward=\'false\' swContextMenu=\'false\'">	');
	document.write('   <EMBED SRC="' + dcr + '" WIDTH="' + width + '" HEIGHT="' + height + '"  BGCOLOR="' + bgcolor + '" SW1="' + sw1 + '" SW2="' + sw2 + '" SW3="' + sw3 + '" SW4="' + sw4 + '" SW5="' + sw5 + '" SW6="' + sw6 + '" SW7="' + sw7 + '" SW8="' + sw8 + '" SW9="' + sw9 + '" SWLIST="' + swlist + '" SWREMOTE="swSaveEnabled=\'false\' swVolume=\'false\' swRestart=\'false\' swPausePlay=\'false\' swFastForward=\'false\' swContextMenu=\'false\'" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/" PALETTE="background"></EMBED>	');
	document.write('   </OBJECT>	');
}




function open_window_sm(url, h, w, name){
	if (!(name)) {
		name = "popupbrowserWindow1";
	}
	var xPos = (screen.width - w) / 2;
	var yPos = (screen.height - h) / 2;
	popupbrowser=window.open(url,name,"toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,height=" + h + ",width=" + w + ",left=" + xPos + ",top=" + yPos +"");
	popupbrowser.focus();

}

function open_window_scroll(url, h, w, name){
	if (!(name)) {
		name = "popupbrowserWindow1";
	}
	var xPos = (screen.width - w) / 2;
	var yPos = (screen.height - h) / 2;
	popupbrowser=window.open(url,name,"toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=" + h + ",width=" + w + ",left=" + xPos + ",top=" + yPos +"");
	popupbrowser.focus();
}



function trimright(s) {
	while (s.charAt(s.length -1) == ' ') {
		s = s.substring(0, s.length-1);		
	}
	return s;
}



function OpenRegWindow(strict) {
	if (strict == "1") {
		open_window_scroll('/asp/registration/registration.asp?strict=1',530,430,'register');
	} else {
		open_window_scroll('/asp/registration/registration.asp',530,430,'register');
	}
}

function OpenLoginWindow() {
	open_window_sm('/asp/registration/login.asp',315,410,'login');
}

function OpenConfirmWindow() {
	open_window_sm('/asp/registration/confirm_form.asp',260,410,'confirm');
}

function OpenRequestConfirmWindow() {
	open_window_sm('/asp/registration/sendconfirm_form.asp',250,410,'requestconfirm');
}

function OpenForgotWindow() {
	open_window_sm('/asp/registration/forgot_password.asp',250,410,'forgot');
}

function OpenUpdateRegWindow(strict) {
	if (strict == "1") {
		open_window_sm('/asp/registration/update_registration.asp?strict=1',525,410,'update')
	} else {
		open_window_sm('/asp/registration/update_registration.asp',525,410,'update')
	}
}

function OpenRankWindow(gameid, highlow) {
	open_window_sm('/asp/rank.asp?gameid=' + gameid + '&ind=' + highlow,180,410,'rank');
}

function GoGameDetail() {
	gameid = document.gamedetail.gameid.options[document.gamedetail.gameid.selectedIndex].value
	if (gameid != "") {
		document.gamedetail.action = "gamedetail.asp";
		document.gamedetail.submit();
	}
}


// -->