function windowAlert(msg){
	alert(msg);
}

function popup(url,width,height) {
	var n = open(url,'1','toolbar=no,location=no,dierectories=no,status=no,menubar=no,titlebar=no,scrollbars=yes,resizable=no,height=' + height + ',width=' + width + ',300,left=50,top=50');
	n.focus();
}

function showModal(url,width,height){
	var WinSetting = "dialogWidth=" + width + "px;dialogHeight=" + height +"px;status=no;help=no;center=yes;";
	window.showModalDialog("Container.aspx?url=" + url,this,WinSetting);
}

function alertDelete(msg){
	if (confirm(msg) == true) {
		return true;
	}else{
		return false;
	}
}

function saveForm(msg){
	if (confirm(msg) == true) {
		return true;
	}else{
		return false;
	}
}

function resetForm(msg){
	if (confirm(msg) == true) {
		document.Form1.reset();
	}else{
		return false;
	}
}

function closeWindow(){
	window.close(); 
}

function ReloadModalWindow(){
	window.close(); 
	window.dialogArguments.location.reload();
}

function ReloadWindow(){
	window.close();
	opener.location.reload();
}

function setFocus(elem){
	document.getElementById(elem).focus();
}

function goTo(page){
		document.location.href = page;
}

