// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// PopUp Script
function popUp(url) {
	var winX = 0;
	var winY = 0;
	var w = 710;
	var h = 550;
	// only set new values if 4.0 browser
	if (parseInt(navigator.appVersion) >= 4) {
		winX = (screen.availWidth - w)*.5;
		winY = (screen.availHeight - h)*.5;
	}
	popupWin = window.open(url, 'popup', 'scrollbars=yes,resizable=yes,width=' + w + ',height=' + h + ',left=' + winX + ',top=' + winY);
}

