function ShowExample(src){ 
	$("#popUpWindow #content iframe").attr("src","/templates/load.html");

        $("#popUpWindow")
		.css("display","block")
		.css("height",(document.getElementById("page").offsetHeight)+"px");
	$("#popUpWindow .messagerFront")
		.css("top",(document.body.scrollTop+(document.body['clientHeight'] - 650)/2))
		.css("left",(document.body['clientWidth'] - 880)/2);

	$("#popUpWindow #content iframe").attr("src",src+"?"+Math.random());
	return false;
}
function CloseExample(){
	$('#popUpWindow').css('display','none');
	$("#popUpWindow #content iframe").attr("src","/templates/load.html");
	return false;
}
function ShowMessage(s){ 
	if(s!=''){
	        $("#messagerWindow #ms").html(s);
	        $("#messagerWindow")
			.css("display","block")
			.css("height",(document.getElementById("page").offsetHeight)+"px");

		$("#messagerWindow .messagerFront")
			.css("top",(document.body.scrollTop+(document.body['clientHeight'] - 80)/2))
			.css("left",(document.body['clientWidth'] - 300)/2);
	}
	return false;
}

