function openWin(resource) {
	if(resource.indexOf("pageLayout")<0)
		resource=resource;//+"&pageLayout=SimplePageLayout";
	var win = window.open(resource, "", 'height=500,width=700,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=yes,resizable=yes');
	//return 0;
}
function openWin2(resource) {
	if(resource.indexOf("pageLayout")<0)
		resource=resource+"&pageLayout=SimplePageLayout";
	var win = window.open(resource, "", 'height=550,width=300,left=400,top=100,status=yes,toolbar=no,scrollbars=no,menubar=no,location=yes,resizable=yes');
	//return 0;
}


function confirmMsgBox(msg,url) {
	var r = window.confirm(msg);
	if(r){
		document.location=url;
	//	window.location=url;
	}
}

function confirmMsgBoxNewWin(msg,url){
	var r=window.confirm(msg);
	if(r){
		window.open(url);
	}
}
