
function login(){
	var olog = document.getElementById("loginform");
	olog.submit();					  
} 
function klogin(e){
	var keynum;
	if(window.event){
		keynum = e.keyCode;
	}
	else if(e.which){
		keynum = e.which;
	}
	if(keynum == 13){
		var olog = document.getElementById("loginform");
		olog.submit();
	}					  
} 
function freereg(){
	window.location="./goreg.php";
}
function getpasswd(){
	window.open("http://gc.imop.com/passport/getpassword.php");
}

function DoFresh(){
	d = new Date(); 
	s = d.getYear()+ "-"; 
	s += (d.getMonth() + 1) + "-"; 
	s += d.getDate() + ' ';
	s += d.getHours() + ":"; 
	s += d.getMinutes() + ":"; 
	s += d.getSeconds();
	document.getElementById('codeimg').src="http://gc.imop.com/com/randimg/img.php?t="+s;
}

function DoFreshact(){
	d = new Date(); 
	s = d.getYear()+ "-"; 
	s += (d.getMonth() + 1) + "-"; 
	s += d.getDate() + ' ';
	s += d.getHours() + ":"; 
	s += d.getMinutes() + ":"; 
	s += d.getSeconds();
	document.getElementById('codeimg').src="http://gc.imop.com/com/randimg/img.php?t="+s;
}