function CheckAll(theElement) {
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
			theForm[z].checked = theElement.checked;
		}
	}
}

function Submit(sAction,sForm) { 
	document.getElementById(sForm).action = sAction; 
	document.getElementById(sForm).submit(); 
} 

function GetDiv(sName){
	var Div = document.getElementById(sName);
	Div.style.cursor = "hand";

	if (Div.style.display == "none"){
		Div.style.display = "";
	}else{
		Div.style.display = "none";
	}
}

function rCheck(sName){
	var Div = document.getElementById(sName);
	if (Div.checked == true){
		Div.checked = false;
	}else{
		Div.checked = true;
	}
}

function MouseOver(sName) {
	sName.style.cursor = 'hand';
	sName.style.backgroundColor = '#e7f4ff';
}
function MouseOut(sName) {
	sName.style.cursor = 'hand';
	sName.style.backgroundColor = '';
}

function Conf_URL(url,msg){
	if (confirm(msg) == true){
		Go(url); 
	}
}

function GetURL(url) {
	parent.location.href = url;
	return false;
}

function Go(url) {
	parent.location.href = url;
	return false;
}

function Num(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46 && charCode != 44){
		return false;
	}else{
		return true;
	}
}
