	function CheckBalance()    
	{       
	  BalanceWindow = window.open("http://www.netgcs.com/checkbalance.aspx", "CheckCardBalance", "width=350,height=285,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
	}   
	
	function CheckGroupBalance()    
	{       
	  BalanceWindow = window.open("http://www.netgcs.com/checkgroupcardbalance.aspx", "CheckGroupCardBalance", "width=500,height=350,top=200,left=200,toolbars=no,scrollbars=yes,status=no,resizable=no");    
	}   
	
	
	function CheckWindow()   
	{      
	   BalanceWindow.close();   
	}


	function RegisterNetGcsCard()
	{
	  RegisterCardWindow = window.open("https://netgcs.merchantsecure.com/registercard.aspx", "RegisterCard", "width=600,height=500,top=50,left=50,toolbars=no,scrollbars=no,status=no,resizable=no");
	}
	

	
	function RedeemNetGcsCard(business, totalamountdue)
	{
	  var redeemHwndUrl = "http://www.netgcs.com/redeemcard.aspx?business=";
	  redeemHwndUrl += business;
	  redeemHwndUrl += "&totalamountdue=";
	  redeemHwndUrl += totalamountdue;
	  
	  RedeemCardWindow = window.open(redeemHwndUrl, "RedeemCard", "width=600,height=600,top=30,left=30,toolbars=no,scrollbars=no,status=no,resizable=no");
	}



	function getthedate()
	{
		var mydate=new Date()
		var year=mydate.getYear()
		if (year < 1000)
		year+=1900
		
		
		var day=mydate.getDate()
		var month=mydate.getMonth()+1

		var hours=mydate.getHours()
		var minutes=mydate.getMinutes()
		var seconds=mydate.getSeconds()

		if (hours>=12)
		var dn="PM"

		if (hours<12)
		var dn="AM"

		if (hours>12){
		hours=hours-12
		}
		if (hours==0)
		hours=12

		if (minutes<=9)
		minutes="0"+minutes
		if (seconds<=9)
		seconds="0"+seconds

		var cdate = month + "/" + day + "/" + year + " " + hours + ":" + minutes + ":" + seconds + " " + dn;
		document.all.clock.value=cdate;
	}

	function getCurrentDateTime()
	{
		if (document.all || document.getElementById)
		   setInterval("getthedate()",1000)
	}





