/* <![CDATA[ */
function positionInfo(object) {
  var p_elm = object;
	this.getElementTop = getElementTop;
	function getElementTop() {
		var y = 0;
		var elm;
		if(typeof(p_elm) == "object"){
			elm = p_elm;
		} else {
			elm = document.getElementById(p_elm);
		}
		while (elm != null) {
			y+= elm.offsetTop;
			elm = elm.offsetParent;
		}
		return parseInt(y);
	}
}
function JSFIX(TargetDiv)
{
	if(document.getElementById(TargetDiv))
	{
		var theHeight;
		var fieldPos = new positionInfo(TargetDiv);
		var headerH = fieldPos.getElementTop();
		if (window.innerHeight) { theHeight=window.innerHeight; } else if ((document.documentElement) && (document.documentElement.clientHeight)) { theHeight=document.documentElement.clientHeight; } else if (document.body) { theHeight=document.body.clientHeight; } 
		var newHeight = (theHeight-headerH)-50;
		document.getElementById(TargetDiv).style.height = newHeight+'px'; 
	}
	else
	{
		return true;
	}
}
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=390,height=400,left = 490,top = 300');");
}
function PayNow() {
	var d = document.getElementById('PayType').value;
	var a = document.getElementById('amt').value;
	popUp('./mindex.php?p=CreditCardPay&type='+d+'&amt='+a);
}
/* ]]> */