

function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=500');");
}

function popUpSmall(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=100,height=100');");
}

function showServerDetails() {
    game = document.forms.cheatform.game.options[document.forms.cheatform.game.options.selectedIndex].value;
    serverip = document.forms.cheatform.serverip.value;
    url = 'server_details.php?server=' + serverip + '&game=' + game;
    popUp(url);
}

function showfilechageeffect() {
    var filename = document.fileform.filename.value;
    var filehash = document.fileform.filehash.value;
    var filesize = document.fileform.filesize.value;
    var currentstatus = document.fileform.currentstatus.value;
    var currenttype = document.fileform.currenttype.value;
    var newstatus = document.fileform.filestatus.options[document.fileform.filestatus.options.selectedIndex].value;
    var newtype = document.fileform.filestype.options[document.fileform.filestype.options.selectedIndex].value;
    var link = 'fileeffect.php?filename=' + filename;
    link = link + "&filehash=" + filehash;
    link = link + "&filesize=" + filesize;
    link = link + "&currentstatus=" + currentstatus;
    link = link + "&currenttype=" + currenttype;
    link = link + "&newstatus=" + newstatus;
    link = link + "&newtype=" + newtype;
    frames['filechangeresult'].location.href = link;
}


function showHideDate(layer_ref,dropDownValue) {
	if (dropDownValue == 3) {
		state = 'block'; 
	} else {
		state = 'none'; 
	}
	showhide(layer_ref,state);
}

function showhide(layer_ref,state) { 

	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + layer_ref + ".style.display = state"); 
	} 
	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers[layer_ref].display = state; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(layer_ref); 
		hza.style.display = state; 
	} 
} 

function setPhrase(text) {
	opener.document.cheatform.offencedescription.value = text
	self.close();
}