// JavaScript Document
function Validate_Login(){	
	valid = true;	
	if ( document.login.uc.value == "" ){
    	alert ( "Please fill in 'Your Username'." );
        valid = false;
    }	
	if ( document.login.pw.value == "" ){
    	alert ( "Please fill in 'Your Password'." );
        valid = false;
    }	
    return valid;	
}

function NoEmpty(){
	valid = true;
	if (document.scamreport.report.value == ""){
		alert ( "Please no empty field." );
		valid = false;
	}
	return valid;
}

function ReDirect() {
	window.location="../";
}

function Enable(){	
	if(document.getElementById("checkbox").checked == false){
		document.getElementById("password_trig").disabled = true;
		document.getElementById("c_password").disabled = true;
		document.getElementById("password_trig").style.backgroundColor = '#CCCCCC';
		document.getElementById("password_trig").style.border = '1px #DDD solid';
		document.getElementById("password_trig").style.padding = '2px';
		document.getElementById("c_password").style.backgroundColor = '#CCCCCC';
		document.getElementById("c_password").style.border = '1px #DDD solid';
		document.getElementById("c_password").style.padding = '2px';
	}else{
		document.getElementById("password_trig").disabled = false;
		document.getElementById("c_password").disabled = false;
		document.getElementById("password_trig").style.backgroundColor = '#FFFFFF';
		document.getElementById("password_trig").style.border = '1px #DDD solid';
		document.getElementById("password_trig").style.padding = '2px';
		document.getElementById("c_password").style.backgroundColor = '#FFFFFF';
		document.getElementById("c_password").style.border = '1px #DDD solid';
		document.getElementById("c_password").style.padding = '2px';
	}	
}