$(document).ready(function() {
	
});
function codeview(val){
		var txt = '<iframe noresize="noresize" width="750" height="500" frameborder="0" src="html.htm" name="middle-navigation"/>';
	popUp();
	var window_width = document.documentElement.clientWidth;
	$("#popup_content").html("");
	$("#popup_content").html(txt);	
	var popup_width =770;
	$("#popup").css({'width': '770px', "top" : 100, "left" : window_width/2 - popup_width/2	});

}
var popupStatus = 0;
function popUp() {
	$("#popup").css({'width' : '370px', 'left' : '221px'});
	centeringPopup("#popup");
	$("#popup").fadeIn("slow");
	popupStatus = 1;
}
function centeringPopup(div_id) {
	$("body").addClass("ieerror_fix");
	$("html").addClass("ieerror_fix");
	var window_width = document.documentElement.clientWidth;
	var popup_width = $("#popup").width();
	$("#popup").css({
		"top" : 100,
		"left" : window_width/2 - popup_width/2	
	});
}
function closePopup() {
	if(popupStatus == 1) {
		$("body").removeClass("ieerror_fix");
		$("html").removeClass("ieerror_fix");
		$("body").removeAttr("class");
		$("html").removeAttr("class");
		$("#popup").fadeOut("slow");
		popupStatus = 0;
	}
}