var ProgramId;var SignupBForm;var SignupAForm;var sexId;
var birthdate;var CountryId;
var PlusLogin;var ClubPage; var bShowTema = 0;var LastName = ""; 
var Address = "";var PostNumber = "";var City = "";var PhoneNumber = "";
var MobNumber = "";var LMActiveTab = "Left";var bPlusMemOptn;
var varTimeOut = 300;var currentLayer = null;var currentitem = null;var currentLayerNum = 0;var noClose = 0;var closeTimer = null;
    
function CustomPostBack(clientId)
{
	__doPostBack(clientId,'');	
}  
function ShowPopup()
{		
	div.style.display='block';
	div.style.position = 'absolute';
	div.style.left = 320;
	div.style.top = 195;
}	
function HidePopup()
{	div.style.display='none'; 
}
function Unlock( TableId, DivTagId )
{
	var ModuleTable = document.getElementById(TableId);
	ModuleTable.className = 'transOFF';	
	var Module = document.getElementById(DivTagId);
	Module.style.display = 'none';
} 
function DoClickAction(Class,TagName,lnkbtn,check,textBox,initial,errorRow)
{		
	if(event.which || event.keyCode)
	{
		if ((event.which == 13) || (event.keyCode == 13)) 
		{
		  if(check == 0)
		   	ValidateTextBox(textBox,initial,errorRow,lnkbtn);
		else
		{	
			var LoginBtn = getElementsByClassName(document,TagName,Class);
			LoginBtn[0].focus();
			LoginBtn[0].click();
		}
	  }
	}
}
function SendActivateMail(IpAddress,club)
{
	var Containers = getElementsByClassName(document,"input","TextBox");
	if( Containers[0].value != "")
	{			
		var strEmail = Containers[2].value;
		Dtf.WebSite.Default.SendActivateMail(strEmail,"INACTIVE",IpAddress);		
		DivLoginArea.style.display ='none';
		DivPasswdSendInnr.style.display ='none';
		DivErrorTable.style.display ='none';			
		DivConfirmMsg.style.display ='none';
		DivBackLabel.style.display ='block';
		DivActivateConfirmMsg.style.display ='block';
		DivConfirmBack.style.display ='none';	
		getElementsByClassName(document,"span","LabelRememPasswdNew1")[0].innerHTML = strEmail;	
		document.getElementById('SendPasswd').className = "SendPasswdInnrCell4";
		document.getElementById('SendPasswdInnr').className = "HideCells";
		document.getElementById('SendPasswdhedr').className = "SendPasswdInnrCells";		
		getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "hidden";		
		if( club == true )
		{	
			var LoginBody = document.getElementById('Login_Body');
			LoginBody.className = "Activate_Body";		
		}							
	}
}
function readCookie(name)
{
   var ca = document.cookie.split(';');
   var nameEQ = name + "=";
   for(var i=0; i < ca.length; i++) 
   {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1, c.length); //delete spaces
		if (c.indexOf(nameEQ) == 0) 
		{
			return c.substring(nameEQ.length, c.length);    
		}
   }
   return null;
}  
function removeCookie(name)
{   createCookie(name, "", -1); }	
function createCookie(name, value , days)
{
   if (days)
   {    var date = new Date();
   		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = ";expires="+date.toGMTString();
   }
   else 
	var expires = "";     
	
   document.cookie = name+"="+value+expires+"; path=/";
}
function IsEmailIDValid(EmailId)
{			
	var bValid = false;	
	var Containers = getElementsByClassName(document,"Img","ErrorImage");				
	for ( var i = 0; i<Containers.length; i++)
	{
		Containers[i].style.visibility = "hidden";						
	}	 
	var validRegExp = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
    if (validRegExp.test(EmailId)) 
    {
       bValid = true;
    }
    else
    {
       bValid =false;
	   ShowErrorControl("DivEmailError2");
    }
    return bValid ; 
}			
// Action for the Send button in the Forgot Passwd panel
function SendPasswordToEmail(languageId,club)
{
	var strEmail="";		
	if (getElementsByClassName(document,"input","TextBox")[2].value !="" )
	{
		strEmail = getElementsByClassName(document,"input","TextBox")[2].value;
		if(IsEmailIDValid(strEmail))
		{
			//If the entered Email id is correct					
			var ret = Dtf.WebSite.Default.SendPassword(strEmail, languageId);
			if( ret.value == 1 ) // password send
			{
				DivPasswdSendInnr.style.display ='none';
				DivErrorTable.style.display ='none';			
				DivConfirmMsg.style.display ='block';
				DivBackLabel.style.display ='none';
				DivConfirmBack.style.display ='block';
				DivActivateConfirmMsg.style.display ='none';				
				getElementsByClassName(document,"span","LabelRememPasswdNew")[0].innerHTML = strEmail;
				document.getElementById('SendPasswd').className = "SendPasswdInnrCell4";
				document.getElementById('SendPasswdInnr').className = "HideCells";
				document.getElementById('SendPasswdhedr').className = "SendPasswdInnrCells";
				getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "hidden";		
				if( club == true )
				{
					var LoginBody = document.getElementById('Login_Body');
					LoginBody.className = "SendPwdMail_Body";
				}
			}
			else if( ret.value == 2) // Error - Member withdrawn
			{
				getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "visible";		
				ShowErrorControl("DivEmailError7");
			}
			else if( ret.value == 3) // Error - Member Inactive
			{
				getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "visible";	
				ShowErrorControl("DivEmailError6");	
			}
			else if( ret.value == -1)// Error - Wrong Param
			{						
				getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "visible";		
				ShowErrorControl("DivEmailError8");
			}
			else if( ret.value == -2)// Error - Member not found
			{						
				getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "visible";		
				ShowErrorControl("DivEmailError7");
			}
			else // Error - Wrong param
			{
				getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "visible";		
				ShowErrorControl("DivEmailError8");
			}
		}
		else
		{
			getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "visible";		
		}		
	}
	else
	{
		getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "visible";		
		ShowErrorControl("DivEmailError1");
	}
}
// Action for the Forget Passwd button in the login panel
function SendPassword(club)
{			
	DivConfirmBack.style.display ='none';
	DivLoginArea.style.display ='none';
	DivSendPasswdHead.style.display ='block';
	DivPasswdSendInnr.style.display ='block';
	DivConfirmMsg.style.display ='none';
	DivBackLabel.style.display ='block';
	DivErrorTable.style.display ='none';
	DivActivateConfirmMsg.style.display ='none';
	getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "hidden";						
	getElementsByClassName(document,"input","TextBox")[2].value = getElementsByClassName(document,"input","TextBox")[0].value;
	document.getElementById('SendPasswd').className = "HideCells";
	document.getElementById('SendPasswdInnr').className = "SendPasswdInnrCell2";
	document.getElementById('SendPasswdhedr').className = "SendPasswdInnrCells";
	getElementsByClassName(document,"input","TextBox")[2].focus();   
	if( club == true )
	{
		var LoginBody = document.getElementById('Login_Body');
		LoginBody.className = "SendPwd_Body";	
	}
}		
//To show the Error mesasage at the top 
function ShowErrorControl(DivError)
{
	DivEmailError1.style.display ='none';
	DivEmailError2.style.display ='none';
	DivEmailError3.style.display ='none';
	DivEmailError4.style.display ='none';
	DivEmailError5.style.display ='none';
	DivEmailError6.style.display ='none';
	DivEmailError7.style.display ='none';
    DivEmailError8.style.display ='none';			    			
	document.getElementById(DivError).style.display = 'block';				
	getElementsByClassName(document,"div","OutrErrorTable")[0].style.display ='block';			
}
//Action for the Back button in the Confirm Email sent panel
function ConfirmBackAction(club)
{
	DivBackLabel.style.display ='block';
	DivConfirmBack.style.display ='none';
	DivPasswdSendInnr.style.display ='block';
	DivConfirmMsg.style.display ='none';		
	DivActivateConfirmMsg.style.display ='none';	
	document.getElementById('SendPasswd').className = "HideCells";
	document.getElementById('SendPasswdInnr').className = "SendPasswdInnrCell2";
	document.getElementById('SendPasswdhedr').className = "SendPasswdInnrCells";	
	getElementsByClassName(document,"Img","ErrorImage")[2].style.visibility = "hidden";						
	if( club == true )
	{
		var LoginBody = document.getElementById('Login_Body');
		LoginBody.className = "SendPwd_Body";
	}	
}
//Action for the Back button in the forgot password panel
function BackAction( club)
{
	DivErrorTable.style.display ='none';			
    DivEmailError7.style.display ='none';
	DivEmailError8.style.display ='none';
	DivBackLabel.style.display ='none';
	DivPasswdSendInnr.style.display ='none';
	DivConfirmMsg.style.display ='none';	
	DivLoginArea.style.display ='block';
	DivSendPasswdHead.style.display ='none';	
	DivActivateConfirmMsg.style.display ='none';	
	getElementsByClassName(document,"input","TextBox")[1].value = "";
	getElementsByClassName(document,"Img","ErrorImage")[0].style.visibility = "hidden";	
	getElementsByClassName(document,"Img","ErrorImage")[1].style.visibility = "hidden";	
	document.getElementById('SendPasswd').className = "HideCells";
	document.getElementById('SendPasswdInnr').className = "HideCells";
	document.getElementById('SendPasswdhedr').className = "HideCells";
	if(club== true)
	{
		var LoginBody = document.getElementById('Login_Body');
		LoginBody.className = "Login_Body";
	}
}
var lowlevelHtml;
function HideLowLevelMenuItem()
{
	
	var LLMenu = getElementsByClassName(document,"div","OuterLLMenu");    
	if( LLMenu.length > 0 )
		LLMenu[0].style.display = 'none';
	var BlankMenu = getElementsByClassName(document,"div","BlankLLMenu");    
	if( BlankMenu.length > 0 )
		BlankMenu[0].style.display = 'block';
}
function ShowLowLevelMenuItem()
{
	var BlankMenu = getElementsByClassName(document,"div","BlankLLMenu");    
	BlankMenu[0].style.display = 'none';	
	var LLMenu = getElementsByClassName(document,"div","OuterLLMenu");    
	LLMenu[0].style.display = 'block';
}
function SetFromDate(fromDay,fromMonth,fromYear)
{
	var fromDayValue = document.getElementById(fromDay).value;
	var fromMonthValue = document.getElementById(fromMonth).value;
	var fromYearValue = document.getElementById(fromYear).value;			
	Dtf.WebSite.Default.SetFromDate(fromDayValue,fromMonthValue,fromYearValue);
}

function GetControlPos(sElementID){ 	
	var e = sElementID;
	if(e == null ) return null; 
	var p = { x: 0, y: 0}; 
	while(e) 
	{ 
	p.x += parseInt(e.offsetLeft,10); 
	p.y += parseInt(e.offsetTop,10); 
	e = e.offsetParent; 
	} 
	return p; 
}
function ChangeWindowTitle(NewWindowTitle)
{	
	top.document.title = NewWindowTitle ; 
}
function TipFriendMail(strError,strEmailErr,langCode)
{
   var ToEmail;
   var ReceiverName;				
   ReceiverName = getElementsByClassName(document,"input","TipFrndTxtBox")[0];
   ToEmail = getElementsByClassName(document,"input","TipFrndTxtBox")[1];
   document.getElementById('TipFrndErrRow').style.display = 'none';   
   if( ToEmail!=null && ReceiverName!=null)
   {
		if(ToEmail.value!="" && ReceiverName.value!="")
		{
		    var validRegExp = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i ;
			if (validRegExp.test(ToEmail.value)) 
			{
			    document.getElementById('TipFrndWait').style.display = "block";	  
			    var Ret = Dtf.WebSite.Default.SendMailTipFriend(ToEmail.value,ReceiverName.value,TipFriendMailCallBack);
			}
			else
			{
			    document.getElementById('TipFrndErrRow').style.display = 'block';
			    getElementsByClassName(document,"span","TipFrndErrorTxt")[0].innerHTML=strEmailErr;
			} 
	   }
	   else
	   {
		  document.getElementById('TipFrndErrRow').style.display = 'block';
		  getElementsByClassName(document,"span","TipFrndErrorTxt")[0].innerHTML=strError;
	   }
   }
   ShowPlusServiceLockControl(langCode);
}
function TipFriendMailCallBack(Res)
{
   document.getElementById('TipFrndWait').style.display = "none";
   if(Res != null)
   {
	if(Res.value[0] == "1")
	{
	   document.getElementById('SendMailTable').style.display = 'none';
       document.getElementById('TipFrndErrRow').style.display = 'none';
       document.getElementById('ResultTable').style.display = 'block';
       getElementsByClassName(document,"span","BoldTxt")[2].innerHTML= Res.value[1];				   
	}
	else
	{
       document.getElementById('TipFrndErrRow').style.display = 'block';
	   getElementsByClassName(document,"span","TipFrndErrorTxt")[0].innerHTML= Res.value[1];
	}
	ShowPlusServiceLockControl(Res.value[2]);
   }
}
function ShowTipFriend(panelbool,langCode)
{
   var TipFrndOuterTable = document.getElementById('TipFrndTable');
   var TipFrndInnerTable1 = document.getElementById('SendMailTable');
   var TipFrndErrRow = document.getElementById('TipFrndErrRow');
   if(panelbool == 0)
   {
		if(TipFrndOuterTable!=null && TipFrndInnerTable1!=null && TipFrndErrRow!=null)
		{
			TipFrndOuterTable.style.display = 'none';
			TipFrndErrRow.style.display = 'none';
			TipFrndInnerTable1.style.display = 'block';
		}
		ShowPlusServiceLockControl(langCode);
   }
   else if(panelbool == 2)
   {
      document.getElementById('ResultTable').style.display = 'none';
      getElementsByClassName(document,"input","TipFrndTxtBox")[0].value= "";
	  getElementsByClassName(document,"input","TipFrndTxtBox")[1].value= "";
      TipFrndOuterTable.style.display = 'block';
   }
   else
   {
		if(TipFrndOuterTable!=null && TipFrndInnerTable1!=null && TipFrndErrRow!=null)
		{
			TipFrndOuterTable.style.display = 'block';
			TipFrndErrRow.style.display = 'none';
			TipFrndInnerTable1.style.display = 'none';
			getElementsByClassName(document,"input","TipFrndTxtBox")[0].value= "";
			getElementsByClassName(document,"input","TipFrndTxtBox")[1].value= "";
		}
		ShowPlusServiceLockControl(langCode);
	}
}
function mcancelclosetime()
{ 
	var ThemeMenu = document.getElementById('ThemeMenu');       
	if(closeTimer)
	{
		window.clearTimeout(closeTimer);closeTimer = null;
	}
	if( ThemeMenu.style.display == 'none' )
	{		
    	ThemeMenu.style.display='block';
		ThemeMenu.style.position= 'absolute';
		ThemeMenu.style.zIndex = 200;	    		    
		var SelectId = getElementsByClassName(document,"select","SearchBoxDropdownCommon_SR");							  
		for (var i=0; i<SelectId.length; i++)
		{SelectId[i].style.visibility = "hidden";}  
	}
}
function mclosetime()
{	
	closeTimer = window.setTimeout(mclose, varTimeOut);
}
function mclose()
{
	if(currentLayer && noClose!=1)
	{
	var ThemeMenu = document.getElementById('ThemeMenu');
	if(ThemeMenu.style.display == 'block')
	{	
		ThemeMenu.style.display="none";
		var SelectId = getElementsByClassName(document,"select","SearchBoxDropdownCommon_SR");							  
		for (var i=0; i<SelectId.length; i++)
		{SelectId[i].style.visibility = '';}  
	}
	currentLayer.style.display='none';
	currentLayerNum = 0;
	currentLayer = null;
	currentitem = null;
	}
	else
	{noClose = 0;}
	currentLayer = null;
	currentitem = null;
}
function SelectOne(rdo,gridName)
{
	all=document.getElementsByTagName("input");
	for(i=0;i<all.length;i++)
	{
		if(all[i].type=="radio")
		{
			var count=all[i].id.indexOf(gridName+'__ctl');
			if(count!=-1)
			{all[i].checked=false;}
		}
	}
	rdo.checked=true;
}
function LoadMovie(MovieName,bPlay)
{
var movieCell = document.getElementById('tdMovie');
movieCell.innerHTML = "<embed type=application/x-mplayer2 pluginspage=http://www.microsoft.com/Windows/MediaPlayer/ name=mediaplayer1 autostart="+bPlay+" height=290px width=320px transparentstart=1 SHOWSTATUSBAR=1 loop=0 controller=true src="+MovieName+">";
}
function HideVoucherTable()
{
  var  div = document.getElementById('VoucherTable');
   div.style.display = 'none';
}

function SwitchHotPlaceTab(TabToFocus,TabFocusContent,TabNormal,TabNormalContent)
{
	var FocusDiv = document.getElementById(TabToFocus);
	var FocusContent = document.getElementById(TabFocusContent);
	var NormalDiv = document.getElementById(TabNormal);
	var NormalContent = document.getElementById(TabNormalContent);
	if(FocusDiv != null && FocusContent != null && NormalDiv != null && NormalContent != null)
	{
		FocusDiv.style.display = 'block';
		FocusContent.style.display = 'block';
		NormalDiv.style.display = 'none';
		NormalContent.style.display = 'none';
	}	
}	
function ShowHotelsplatImage()
{
	for(var i=1;i<=7; i++)
	{		
		var ctl = 'CenterCell'+i;
		var ImageDiv = 'ImageDiv'+i;
		ImageDiv =  document.getElementById(ImageDiv);
		var pos = getElementPos(ctl);		
		ImageDiv.style.display="block";
		ImageDiv.style.position = "absolute";	
		X = pos.x + document.getElementById(ctl).clientWidth - ImageDiv.clientWidth  ;
		Y = pos.y + document.getElementById(ctl).clientHeight;		
		ImageDiv.style.left = X + 4;
		ImageDiv.style.top = Y - document.getElementById(ctl).clientWidth + 25;
		window.onresize = ShowHotelsplatImage;
	}	
}
function ShowCountry(clientid)
{
	var combo =  getElementsByClassName(document,"select","Combo")[0];	
	location = combo.options[combo.selectedIndex].value;	
}
function ShowInfoPage(url)
{
	location.href = url;
}
function PlaceBTBigImage()
{	
	var ctl = 'BTBigImageCell';
	var ImageDiv = 'BTBigImageDiv';
	ImageDiv =  document.getElementById(ImageDiv);
	var pos = getElementPos(ctl);		
	ImageDiv.style.display="block";
	ImageDiv.style.position = "absolute";	
	X = pos.x+ document.getElementById(ctl).clientWidth /3+2;
	Y = pos.y + document.getElementById(ctl).clientHeight;		
	ImageDiv.style.left = X  - 14;
	ImageDiv.style.top = Y - document.getElementById(ctl).clientWidth + 55;
	window.onresize = PlaceBTBigImage;		
}

function getElementPos(sElementID)
{
	if(!document.getElementById) return null;
	var e = document.getElementById(sElementID);
	if(e == null ) return null;
	var p = { x: 0, y: 0};
	while(e)
	{
	p.x += parseInt(e.offsetLeft,10);
	p.y += parseInt(e.offsetTop,10);
	e = e.offsetParent;
	}
	return p;
}
function showHideFormElements(value){var combos = document.getElementsByTagName('select');for(i=0; i<combos.length; i++) {combos[i].style.visibility = value;}}
function ShowMenuThema(LblId)
{	
   var mm = getElementsByClassName(document,"span",LblId)[0];   
   var ThemeMenu = document.getElementById('ThemeMenu');	
   if(ThemeMenu)
   {   
       mcancelclosetime();
       var pos = getElementPos(mm.id);
       var X= pos.x; 
       var Y= pos.y+20;
       ThemeMenu.style.width = mm.offsetWidth;
       ThemeMenu.style.left = X + 'px';
       ThemeMenu.style.top = Y + 'px';             
       ThemeMenu.style.position= 'absolute'; 
       ThemeMenu.style.display='block';
       ThemeMenu.style.position= 'absolute'; 
       var layerTableId = document.getElementById('DivSearchBox');       
	   if(layerTableId == null || layerTableId.style.display == "none")
	   {
		    ThemeMenu.style.display='block'; 
			ThemeMenu.style.position= 'absolute';
			ThemeMenu.style.zIndex = 200;
		    var SelectId = getElementsByClassName(document,"select","SearchBoxDropdownCommon_SR");
			for (var i=0; i<SelectId.length; i++)
			{SelectId[i].style.visibility = "hidden";}  
	   }       
	   if(currentLayer && (currentLayerNum != 1))
       {currentLayer.style.display='none';}
      currentLayer = ThemeMenu;
      currentitem = mm;
      currentLayerNum = 1;       
    }
    else if(currentLayer)
    {		
      currentLayer.style.display='none';
      currentLayerNum = 0;
      currentitem = null;
      currentLayer = null;
    }       
 }
function ValidateFromDate(fromDay,fromMonth,fromYear,fromDateError,buttonid)
{
	var fromDayValue = document.getElementById(fromDay).value;
	var fromMonthValue = document.getElementById(fromMonth).value;
	var fromYearValue = document.getElementById(fromYear).value;			
	var bRetFromDate = Dtf.WebSite.Default.ValidateFromDate(fromDayValue,fromMonthValue,fromYearValue);	
	document.getElementById(fromDateError).style.display='None';	
	if(bRetFromDate.value == false)
		document.getElementById(fromDateError).style.display='Block';			
	else if(bRetFromDate.value == true)
	   __doPostBack(buttonid,'');			
}
function SetLink(url)
{
	document.getElementById("lnkplus1").href = url;
	document.getElementById("lnkplus1").href = url;
}
function showPayment(pay)
{
	//try{document.getElementById('DivSignupBError').style.display='none';}catch(e){};
	if(pay == 1)
	{
		try{document.getElementById('trDibs').style.display='';}catch(e){};
		try{document.getElementById('trBetailings').style.display='none';document.getElementById('trFreePay').style.display='none';}catch(e){};
	}
	else if(pay == 2)
	{
		try{document.getElementById('trDibs').style.display='none';}catch(e){};
		try{document.getElementById('trBetailings').style.display='';document.getElementById('trFreePay').style.display='none';}catch(e){};
	}
	else if(pay == 0)
	{
		try{document.getElementById('trFreePay').style.display='';}catch(e){};
		try{document.getElementById('trDibs').style.display='none';document.getElementById('trBetailings').style.display='none';}catch(e){};
	}
}	

function HideAdServingDiv()
{
	try{document.getElementById('divAdservingContainer').style.display = 'none';}catch(e){};
}
function HideWaitSymbol()
{
    try{document.getElementById('divOnlineErr').innerHTML = '';}catch(e){};
	try{document.getElementById('gmapWait').style.display='none';}catch(e){};	
	try{document.getElementById('divOnline').style.display='';}catch(e){};
	if(document.getElementById('hidHis').value == 0)
	{document.getElementById('hidHis').value = history.length;}
	else
	{
	    AjaxPro.timeoutPeriod = 60*1000;
	    var ret = Dtf.WebSite.Default.CheckReceiptData();
	    if(ret != null && ret.value == true)
	    {
	        try{document.getElementById('divOnline').style.display='none';}catch(e){};
	        try{document.getElementById('gmapWait').style.display='';}catch(e){};				
	        try{document.getElementById('divWaitMsg').style.display='none';}catch(e){};
	        try{document.getElementById('divOrderCreateMsg').style.display='';}catch(e){};
	        AjaxPro.timeoutPeriod = 60*1000;
		    Dtf.WebSite.Default.BetalingSuccess(2,BetalingSuccessCallBack);
	    }
	    else
	    {	        
	        history.forward();	        
	        try{document.getElementById('divOnline').style.display='none';}catch(e){};	    
	    }
	}
}
function BetalingSuccessCallBack(ret)
{
    try{document.getElementById('gmapWait').style.display='none';}catch(e){};
    if(ret != null && ret.value != null && ret.value.length > 0)
    {
        if(ret.value[0] != null)
        {            
            if(ret.value[0] == "0")
            {
                if(ret.value[1] != null)
                {                    
                    if(ret.value[1] != "")
                    {
                        try{document.getElementById('divOnlineErr').innerHTML = ret.value[1];}catch(e){};
                    }
                }
            }
            else
                location.href = ret.value[0];
        }        
    }    
}
function RedirectToOnlinePayment()
{
    var strURL = Dtf.WebSite.Default.GetOnlinePaymentURL();      
    if(strURL != null && strURL.value != "")
        location.href = strURL.value;
}