// JavaScript Document

<!--




function GP_popupConfirmMsg(msg) { //v1.0
  document.MM_returnValue = confirm(msg);
}


function MM_openBrWindow(theURL,winName,features) { //v2.0

	if(!winName || winName.closed)
		winName = window.open(theURL,winName,features);
	else
		winName.focus();

}


/* SHOW/HIDE a DIV by TOGGLING it show/hide
see: http://www.media-doc.com/wiki/index.php?title=Show/hide_DIV
*/


function toggleDiv(divid){
	if(document.getElementById(divid).style.display == 'none'){
		document.getElementById(divid).style.display = 'block';
	}else{
		document.getElementById(divid).style.display = 'none';
		}
	}

function pause(milliseconds) {
	var dt = new Date();
	while ((new Date()) - dt <= milliseconds) { /* Do nothing */ }
}

function parent_reload(theURL) {
	$("#page_margins", top.document).load(theURL);
	//alert(theURL);
	var reload_location
	reload_location = theURL;
	//alert(reload_location);
	window.opener.location.reload();
	window.opener.location.replace(reload_location);
	// add this if you want the window to close too 
	//window.close();--->
	return false;
}

function load_child(theURL) {
	document.getElementById("child_frame").src = theURL;
	document.getElementById("child_window").style.display = "block"
}

$(document).ready(function() {
	$( "#child_window" ).draggable();
});

$(document).ready(function() {
	$( "#child_window" ).resizable({alsoResize: "#child_frame"});
	$( "#child_frame" ).resizable();
});


//-->


