// JavaScript Document
var windowOpened = ''
function closeWindows(winId){
	document.getElementById(winId).style.display = 'none'
	document.getElementById('windowClose').style.display = 'none'
	document.getElementById('windowShadow').style.display = 'none'
}

function openWindows(winId){
	if (windowOpened != '') {
		closeWindows(windowOpened)
	}
	document.getElementById(winId).style.display = 'block'
	document.getElementById('windowClose').style.display = 'block'
	document.getElementById('windowShadow').style.display = 'block'
	windowOpened = winId
}

function openHelpSMS(){
	document.getElementById('helpSMS').style.display = 'block'
}

function closeHelpSMS(){
	document.getElementById('helpSMS').style.display = 'none'
}

function sendPay(aMount,transId){
	top.document.sendPayment.AMOUNT.value = aMount
	top.document.sendPayment.TRANSID.value = transId
	top.document.sendPayment.submit();
}