function checkLoginForm(){
	df = document.getElementById("LoginForm");
	if(df.username.value==""||df.password.value==""){return false;}
	return true;
}
function popGame_2(gameroot, lang, sid, site, gameid, F1x2, ch){
	if (gameid == "lotto"){
		h1l('lo');
		return;
	}else if( gameid== 30000 || gameid==31000){
		location.href = gamepath(gameid);
		return;
	}else if (gameid == 35000 || gameid==35100){
		pURL = F1x2 +"?page=f1x2page&lang=" + lang + "&sid=" + sid + "&ms=" + subsite + "&gameid=" + gameid;
		args = ",width=788,height=594,location=0,menubar=0,scrollbars=1";
	}else{
		pURL = gameroot + "/dod.go?page=launch&gameid=" + gameid + "&lang=" + lang + "&frame=1&sid=" + sid;
		args = "width=400,height=300,location=0,menubar=0,scrollbars=0";
	}
	
	args += ",resizable=1,status=0,titlebar=0,"
	+ "toolbar=0,hotkeys=0,"
	+ "fullscreen=0,left=100,top=100";
	aP=window.open(pURL,'gamewin',args);
	if ((document.window != null) && (!aP.opener))
	aP.opener = document.window;
	if (parseInt(navigator.appVersion) >= 4) { aP.window.focus(); }
	if (gameid == 35000||gameid==35100){
		h1l('vr');
	}else if(ch!='gm'){
		h1l('gm');
	}
}
function clock_2(starttime){
	pos = starttime.indexOf(":");
	hours = starttime.substring(0,pos);
	left = starttime.substring(pos+1);
	pos = left.indexOf(":");
	minutes = left.substring(0,pos);
	seconds = left.substring(pos+1);
	if(seconds<59){seconds++;if(seconds.toString().length==1){seconds = "0" + seconds.toString();}
	}else{seconds = "00";
	if(minutes<59){minutes++;if(minutes.toString().length==1){minutes = "0" + minutes.toString();}
	}else{minutes="00";
	if(hours<24){hours++;if(hours.toString().length==1){hours = "0" + hours.toString();}
	}else{hours="00";}
	}
	}
	starttime = hours + ":" + minutes + ":" + seconds;
	return starttime;
}
function popupPage(pURL, wd, ht, winname, xp, yp, rs, st, res){
	args = "width=" + wd + ","
	args += "height=" + ht + ","
	args += "location=0,";
	args += "menubar=0,scrollbars=";
	args += rs=="yes"?"1,":"0,";
	args += "resizable=";
	args += res=="yes"?"1,":"0,";
	args += "status=";
	args += st=="yes"?"1,":"0,";
	args += "titlebar=0,";
	args += "toolbar=0,";
	args += "hotkeys=0,";
	args += "fullscreen=0,";
	args += "left=" + xp + ",";
	args += "top=" + yp;
	aP=window.open(pURL,winname,args);
	if ((document.window != null) && (!aP.opener))
	aP.opener = document.window;
	if (parseInt(navigator.appVersion) >= 4) { aP.focus(); }
}
function makeLink_2(title,url){
	bu = "http://" + url;
	bt = title;
	if (window.sidebar) { 
		window.sidebar.addPanel(bt, bu,"");
	} else if( window.external ){ 
		window.external.AddFavorite( bu, bt); 
	} else if(window.opera && window.print) { 
		return true; 
	}
}

function addUrlVars_2(h1t,links){
	//finds all links inside dropdowns
 	for (var i=0; i<links.length; i++) {
		links[i].onclick=function () {
			if (this.href.indexOf('javascript:')){
				this.href += "&" + h1t;
			}else{
				this.href;
			}
		}
	}
}