  
/* showMovieListdebit *///////////////////////////////////////////////////
	/*
	function GotoIvr(CodeSup,CodeMovie){
		document.FrmMovie.txtIDsup.value = CodeSup
		document.FrmMovie.txtcodemovie.value = CodeMovie
		document.FrmMovie.action="http://www.ratuv.co.il/IVRIn.asp"
		document.FrmMovie.submit();	
	}
	*/
	/*
	function forgotPassword(){
		document.FrmMovie.action="forgot_my_password.asp"
		document.FrmMovie.target="_top";
		document.FrmMovie.submit();
	}
	*/
	function forgotPassword(){
		document.FrmMovie.action="forgot_my_password.asp"
		document.FrmMovie.target="_self";
		document.FrmMovie.submit();
	}

	function forgotPasswordTV(){
		document.chargeForm.action="http://www.ratuv.co.il/forgot_my_password.asp"
		document.chargeForm.target="_self";
		document.chargeForm.submit();
	}
	
	function show_credit_popup(){
		document.getElementById('confirmMe').style.top = "0px";
		document.getElementById('confirmMeIframe').style.top = "0px";
		
	}
	function closeWin_credit(){
		document.getElementById('confirmMe').style.top = "-5000px";
		document.getElementById('confirmMeIframe').style.top = "-5000px";
	}
	
	var ChargeVisa = 0;
	/*
	function 1111CheckPassUser(){
		if(document.FrmMovie.userPsssword.value==""){
			alert("חובה להקליד סיסמא באורך 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.userPsssword.value.length!=8){
			alert("סיסמא חייבת להכיל 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.txtcodemovie.value=="-1"||document.FrmMovie.txtcodemovie.value=="-2"){
			document.FrmMovie.txtcodemovie.value = 47
		}		
		
		document.FrmMovie.action="http://www.ratuv.co.il/include/CheckPassUser.asp"
		document.FrmMovie.submit();	
	}
	*/
	function CheckPassUser(){
		if(document.FrmMovie.userPsssword.value==""){
			alert("חובה להקליד סיסמא באורך 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.userPsssword.value.length!=8){
			alert("סיסמא חייבת להכיל 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.txtcodemovie.value=="-1"||document.FrmMovie.txtcodemovie.value=="-2"){
			//	alert("נא בחר סרט לצפיה")
			//	return;
			document.FrmMovie.txtcodemovie.value = 47
		}		
		
		document.FrmMovie.action="http://www.ratuv.co.il/include/CheckPassUser.asp"
		document.FrmMovie.submit();	
	}
	/*
	function CheckPassUserByDror(){
		if(document.FrmMovie.userPsssword.value==""){
			alert("חובה להקליד סיסמא באורך 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.userPsssword.value.length!=8){
			alert("סיסמא חייבת להכיל 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.txtcodemovie.value=="-1"||document.FrmMovie.txtcodemovie.value=="-2"){
			//	alert("נא בחר סרט לצפיה")
			//	return;
			document.FrmMovie.txtcodemovie.value = 47
		}		
		document.FrmMovie.action="http://www.ratuv.co.il/include/CheckPassUserByDror.asp"
		document.FrmMovie.submit();	
	}
	*/
	function CheckPassUser_charge(){
		if(document.chargeForm.userPsssword.value==""){
			alert("חובה להקליד סיסמא באורך 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.chargeForm.userPsssword.value.length!=8){
			alert("סיסמא חייבת להכיל 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.chargeForm.txtcodemovie.value=="-1"||document.chargeForm.txtcodemovie.value=="-2"){
			//	alert("נא בחר סרט לצפיה")
			//	return;
			document.chargeForm.txtcodemovie.value = 47
		}		
		
		document.chargeForm.action="http://www.ratuv.co.il/include/CheckPassUser.asp"
		document.chargeForm.submit();	
	}
	function CheckPassUserTV(){
		if(document.chargeForm.userPsssword.value==""){
			alert("חובה להקליד סיסמא באורך 8 ספרות")
			document.chargeForm.userPsssword.focus();
			return;
		}
		if(document.chargeForm.userPsssword.value.length!=8){
			alert("סיסמא חייבת להכיל 8 ספרות")
			document.chargeForm.userPsssword.focus();
			return;
		}
		if(document.chargeForm.txtcodemovie.value=="-1"||document.chargeForm.txtcodemovie.value=="-2"){
			//	alert("נא בחר סרט לצפיה")
			//	return;
			document.chargeForm.txtcodemovie.value = 47
		}		
		
		document.chargeForm.action="http://www.ratuv.co.il/include/CheckPassUserTv.asp"
		document.chargeForm.submit();	
	}
	
	function CheckPassUserIn(){
		if(document.FrmMovie.userPsssword.value==""){
			alert("חובה להקליד סיסמא באורך 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.userPsssword.value.length!=8){
			alert("סיסמא חייבת להכיל 8 ספרות")
			document.FrmMovie.userPsssword.focus();
			return;
		}
		if(document.FrmMovie.txtcodemovie.value=="-1"||document.FrmMovie.txtcodemovie.value=="-2"){
			//	alert("נא בחר סרט לצפיה")
			//	return;
			document.FrmMovie.txtcodemovie.value = 47
		}		
		
		document.FrmMovie.action="http://www.ratuv.co.il/include/CheckPassUserIn.asp"
		document.FrmMovie.submit();	
	}
	
	function closeWin(){
		document.getElementById('errTR').style.background = '#D4D0C8';
		document.getElementById('errTR').innerHTML = '&nbsp;';
		document.getElementById('confirmMe').style.display = 'none';
		document.getElementById('confirmMeIframe').style.display = 'none';
	}
	
	function callPopup(movie,Price){
		document.FrmMovie.txtcodemovie.value=movie;
		document.FrmMovie.txtPMovie.value=Price;
		
		if(movie>0){
			document.FrmMovie.txtNamemovie.value = eval("titleName"+movie).innerHTML;
		}
		document.getElementById('confirmMe').style.display = '';
		
		var posx = 0;
		var posy = 0;
		if (!e) var e = window.event;
		if (e.pageX || e.pageY){
			//posx = e.pageX;
			posy = e.pageY;
		}else if (e.clientX || e.clientY){
			//posx = e.clientX + document.body.scrollLeft;
			posy = e.clientY + document.body.scrollTop;
		}
		if(posy<320)posy=280;
		document.getElementById('confirmMe').style.top = posy-430;
		document.FrmMovie.userPsssword.focus();
	}
	/* ****************************************************** */
	function callPopupNew(movie,Price,btnID){
		  document.FrmMovie.txtcodemovie.value=movie;
		  document.FrmMovie.txtPMovie.value=Price;
		  
		  if(movie>0){
		   document.FrmMovie.txtNamemovie.value = eval("titleName"+movie).innerHTML;
		  }
		  document.getElementById('confirmMe').style.display = '';
		  //alert(findPos(detectBrowser(btnID))[1])
		  document.getElementById('confirmMe').style.top = findPos(document.getElementById(btnID))[1];
		  scroll(0,0);
		  document.FrmMovie.userPsssword.focus();
 	}
	
	/* ****************************************************** */
	function callPopupRatuv(movie,Price,btnID){
		document.FrmMovie.txtcodemovie.value=movie;
		document.FrmMovie.txtPMovie.value=Price;
		
		if(movie>0){
			document.FrmMovie.txtNamemovie.value = eval("titleName"+movie).innerHTML;
		}
		document.getElementById('confirmMe').style.display = '';
		parent.scroll(0,0);
		document.FrmMovie.userPsssword.focus();
	}
	
	// this function finds the position of the image thumb to place the frame div
	function findPos(obj) {
		//alert("--")
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			curleft = obj.offsetLeft
			curtop = obj.offsetTop
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft
				curtop += obj.offsetTop
			}
		}
		
		return [curleft,curtop];
	}
	function GoBack(){
		//מדמה מישתנה
		document.FrmMovie.bt_code_pay_sms.value="0*1*0"
		document.FrmMovie.action="payment.asp"
		document.FrmMovie.submit();
	}
	
	function Send(){ //code_movie
		if(document.FrmMovie.txtPMovie.value=="-1" || document.FrmMovie.txtPMovie.value==""){
		//	alert("חובה לבחור מבצע או סרט לרכישה")
			//document.FrmMovie.txtPMovie.focus();
		//	return;
		}
		document.FrmMovie.submit();
	}
	function callTocredit(movie,Price,titleName){
		document.FrmMovie.txtcodemovie.value=movie;
		// by life
		document.FrmMovie.txtNamemovie.value=titleName;
		//
		document.FrmMovie.txtPMovie.value=Price;
		document.FrmMovie.submit();
	}
	
	/* new function by life */
	function callCreditFromFlash(){
		if(document.FrmMovie.txtpage.value==""){
			location.href('https://www.ratuv.co.il/MoviePayment.asp?IDsite='+document.FrmMovie.txtIDsite.value+'&IDMovie=-1&IDcodeCatMovie='+document.FrmMovie.IDcodeCatMovie.value+'')
		}
		else{
			location.href('https://www.ratuv.co.il/MoviePayment.asp?IDsite='+document.FrmMovie.txtIDsite.value+'&IDMovie=-1&IDcodeCatMovie='+document.FrmMovie.IDcodeCatMovie.value+'&page='+document.FrmMovie.txtpage.value+'')
		}	
		//callTocredit('-2',document.FrmMovie.txtPMovie.value)
	}
	/* ******************** */
	var passFocus=false;
	function numbersonly(e){
		var unicode=e.charCode? e.charCode : e.keyCode
		if (unicode!=8 && unicode!=13){ //if the key isn't the backspace key (which we should allow)
			if (unicode<48||unicode>57) //if not a number
				return false //disable key press
		}
		if (unicode==13 && passFocus=='true'){
			CheckPassUser()
		}
	}
	
	function ChangePriceTv(){
		for(var i=0;i<document.chargeForm.RadPrice.length;i++){
			if(document.chargeForm.RadPrice[i].checked==true){
				switch(i)
				{
					case 0:
						   document.chargeForm.txtcodemovie.value = "-4";
						   document.getElementById('subscrib_period').innerHTML = "מנוי 48 שעות";
						   break;
					case 1:
						   document.chargeForm.txtcodemovie.value = "-3";
						   document.getElementById('subscrib_period').innerHTML = "לחודש";
						   break;
					case 2:
					       document.chargeForm.txtcodemovie.value = "-5";
						   document.getElementById('subscrib_period').innerHTML = "לחודשיים";
						   break;
					case 3:
					       document.chargeForm.txtcodemovie.value = "-6";
						   document.getElementById('subscrib_period').innerHTML = "לחצי שנה";
						   break;
					default:
					       document.chargeForm.txtcodemovie.value = "-3";
						   document.getElementById('subscrib_period').innerHTML = "לחודש";
						   break;	   	   	   	   
				}
				document.getElementById('charge_subscriber').innerHTML = document.chargeForm.RadPrice[i].value;
				
				//alert("Chaim Change The Price With InnerHtml To " + document.chargeForm.RadPrice[i].value)
				}
		}		
	}
	function BuyTv(){
		var FinalPriceTv;
		for(var i=0;i<document.chargeForm.RadPrice.length;i++){
			if(document.chargeForm.RadPrice[i].checked==true){
				FinalPriceTv = document.chargeForm.RadPrice[i].value;
				break;
				}
		}
		SCheckDetails(FinalPriceTv);	
	}
////////////////////////////////////////////////////////////////////////////////////

/* check EMAIL */
function echeck(str) {
	var hebStr="אבגדהוזחטיכלמנסעפצקרשת";
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	
	if (str.indexOf(at)==-1){
	   return false
	}
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   return false
	}
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
	    return false
	}
	 if (str.indexOf(at,(lat+1))!=-1){
	    return false
	 }
	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	    return false
	 }
	 if (str.indexOf(dot,(lat+2))==-1){
	    return false
	 }
	 if (str.indexOf(" ")!=-1){
	    return false
	 }
	 for (i=0;i<hebStr.length;i++){
		 if (str.indexOf(hebStr.substring(i,i+1))!=-1){
		    return false
		 }
	 }
	 return true					
}

/* creditDetails *///////////////////////////////////////////////////
function SendMovie(){
		document.chargeForm.action="http://www.ratuv.co.il/include/CheckPassUser.asp"
		document.chargeForm.submit();
		}
function SendTV(){
		document.chargeForm.action="http://www.ratuv.co.il/include/CheckPassUserTV.asp"
		document.chargeForm.submit();
		}		
function CheckDetails(Pm){
	if(document.chargeForm.ccNumber.value==""){
		alert("חובה להקליד מספר כרטיס אשראי")
		document.chargeForm.ccNumber.focus();
		return;
		}
	/*if(document.chargeForm.ccNumber.value.length!=16)
		{
		alert("Must enter 16 digit..")
		document.chargeForm.ccNumber.focus();
		return;
		}*/
	if(document.chargeForm.cvv.value==""){
		alert("חובה להקליד את שלושת הספרות האחרונות בגב כרטיס האשראי")
		document.chargeForm.cvv.focus();
		return;
		}
	if(document.chargeForm.cvv.value.length!=3){
		alert("3 ספרות אחרונות בגב כרטיס האשראי")
		document.chargeForm.cvv.focus();
		return;
		}	
	if(document.chargeForm.holderName.value==""){
		alert("חובה להקליד את שם מחזיק הכרטיס")
		document.chargeForm.holderName.focus();
		return;
		}		
	/*if(document.chargeForm.Phone.value=="")	{
	  	alert("חובה להקליד מספר טלפון של מחזיק הכרטיס")
	  	document.chargeForm.Phone.focus();
	  	return;
	  	}
	  if(document.chargeForm.Phone.value.length!=7){
	  	alert("מסםר הטלפון חייב להכיל 7 ספרות")
	  	document.chargeForm.Phone.focus();
	  	return;
	  	}*/
	 if(document.chargeForm.holderId.value==""){
		alert("חובה להקליד את מספר תעודת הזהות של בעל הכרטיס")
		document.chargeForm.holderId.focus();
		return;
		}
	if(document.chargeForm.email.value==""){
		alert("חובה להקליד את כתובת הדואר האלקטרוני")
		document.chargeForm.email.focus();
		return false;
	}else{
		if(!echeck(document.chargeForm.email.value)){
			alert("אינה חוקית E-mail כתובת");
			document.chargeForm.email.focus();
			return false;
		}	
	}	
	if(document.chargeForm.holderId.value.length==8){	
		document.chargeForm.holderId.value = "0" + document.chargeForm.holderId.value;
	}
	if(document.chargeForm.holderId.value.length!=9){
		alert("חובה להקליד 9 ספרות")
		document.chargeForm.holderId.focus();
		return;
		}
	var ifrm;
 	ifrm = frames.frame1;
 	ifrm.document.all.txtcodemovie.value = document.chargeForm.txtcodemovie.value	
 	ifrm.document.all.companyNumber.value = "4243913"		
	// document.chargeForm.companyNumber.value="4243913"	
	ifrm.document.all.currency.value = "0"			
 	//document.chargeForm.currency.value="0"	
	ifrm.document.all.creditType.value = "1"			
 	//document.chargeForm.creditType.value="1"	
	ifrm.document.all.payments.value = "1"		
 	//document.chargeForm.payments.value="1"	
 	ifrm.document.all.amount.value = Pm
 	//ifrm.document.all.amount.value = "1"			
 	//document.chargeForm.amount.value="1"		
	ifrm.document.all.holderPhone.value =document.chargeForm.AreaPhone.value+document.chargeForm.Phone.value
 	//document.chargeForm.holderPhone.value=document.chargeForm.AreaPhone.value+document.chargeForm.Phone.value
	
	ifrm.document.all.ccNumber.value =document.chargeForm.ccNumber.value
	ifrm.document.all.expMonth.value =document.chargeForm.expMonth.value
	ifrm.document.all.expYear.value =document.chargeForm.expYear.value
	ifrm.document.all.cvv.value =document.chargeForm.cvv.value
	ifrm.document.all.holderName.value =document.chargeForm.holderName.value
	ifrm.document.all.holderId.value =document.chargeForm.holderId.value
	ifrm.document.all.email.value =document.chargeForm.email.value
	document.all.Charge_card.style.display = 'none';
	//document.all.Charge_card_check.style.display = '';
	document.all.errMassageTD.style.display = 'none';
	document.all.checkCard.style.display = '';
	ifrm.document.forms.chargeForm.submit();		
 	
 	//document.chargeForm.submit();
	
	return false;
}
function SCheckDetails(Pm){
	if(document.chargeForm.ccno.value==""){
		alert("חובה להקליד מספר כרטיס אשראי")
		document.chargeForm.ccno.focus();
		return;
		}
	if(document.chargeForm.cvv.value==""){
		alert("חובה להקליד את שלושת הספרות האחרונות בגב כרטיס האשראי")
		document.chargeForm.cvv.focus();
		return;
		}
	if(document.chargeForm.cvv.value.length!=3){
		alert("3 ספרות אחרונות בגב כרטיס האשראי")
		document.chargeForm.cvv.focus();
		return;
		}	
	if(document.chargeForm.holderId.value==""){
		alert("חובה להקליד את מספר תעודת הזהות של בעל הכרטיס")
		document.chargeForm.holderId.focus();
		return;
		}
	if(document.chargeForm.holderId.value.length==8){	
		document.chargeForm.holderId.value = "0" + document.chargeForm.holderId.value;
	}	
	if(document.chargeForm.holderId.value.length!=9){
		alert("חובה להקליד 9 ספרות")
		document.chargeForm.holderId.focus();
		return;
		}
	CheckData(document.chargeForm.holderId.value,Pm)	
}		
////////////////////////////////////////////////////////////////////////////////////
function cCardShow(x){
	if(x==1){
		detectBrowser('cCard').style.display = '';
	}else{
		detectBrowser('cCard').style.display = 'none';
	}
}
//////////////////////////////////////////ajax  a must .////////////////
function AJAXInteraction(url){
	this.url = url;
    var req = init();
    req.onreadystatechange = processRequest;
    function init(){
    	if (window.XMLHttpRequest){
        	return new XMLHttpRequest();
    	}else if (window.ActiveXObject){
        	isIE = true;
        	return new ActiveXObject("Microsoft.XMLHTTP");
    	}
	}
    function processRequest (){
		//alert(req.readyState);
		if (req.readyState == 4){
			if (req.status == 200){
            	postProcess(req.responseText);
            }
        }
    }
    this.send = function(){
    	req.open("GET", url, true);
        req.send(null);
    }
}
function postProcess(responseXML){
   chkAnswer(responseXML);
}
function CheckData(idvisa,Pm){
  	  var url = "include/ajaxData.asp";
      var d = new Date();
      url +=  "?timeStamp=" + d.getMilliseconds() + "&idvisa=" + idvisa + "&Pm=" + Pm 
	   var ajax =  new AJAXInteraction(url);
      ajax.send();
      return 1;	
}
function openFile(Level,CodeC){
	  var url = "include/ajaxVars.asp";
      var d = new Date();
      url +=  "?timeStamp=" + d.getMilliseconds() + "&Level=" + Level + "&CodeC="+ CodeC;
      var ajax =  new AJAXInteraction(url);
      ajax.send();
      return 1;	
}
//////////////////////////////////////////end ajax must.////////////////
function chkAnswer(vars){
	vars =vars.split("_")
	if(vars[0]=="Y"){
		alert("לחיוב כרטיס האשראי צור קשר עם התמיכה")
	}
	else{
		var ifrm;
		ifrm = frames.frame1;
		
		ifrm.document.all.txtcodemovie.value = document.chargeForm.txtcodemovie.value	
		ifrm.document.all.supplier.value ="ratuv"
		ifrm.document.all.ccno.value =document.chargeForm.ccno.value
		var iLen = document.chargeForm.ccno.value.length
		ifrm.document.all.txtSaveCcno.value = document.chargeForm.ccno.value.substring(iLen,iLen-6)
		ifrm.document.all.expmonth.value =document.chargeForm.expmonth.value
		ifrm.document.all.expyear.value =document.chargeForm.expyear.value
		ifrm.document.all.sum.value = vars[1]
		ifrm.document.all.clientName.value =document.chargeForm.clientName.value
		ifrm.document.all.txtStore.value =document.chargeForm.txtStore.value
	
		
		
		ifrm.document.all.txtTracking.value =document.chargeForm.txtTracking.value
		ifrm.document.all.holderPhone.value =document.chargeForm.AreaPhone.value+document.chargeForm.Phone.value
		//ifrm.document.all.cvv.value =document.chargeForm.cvv.value
		ifrm.document.all.mycvv.value =document.chargeForm.cvv.value
		//ifrm.document.all.holderId.value =document.chargeForm.holderId.value
		ifrm.document.all.myid.value =document.chargeForm.holderId.value
		ifrm.document.all.email.value =document.chargeForm.email.value
		if(document.chargeForm.txtIDsite.value=="")
			document.chargeForm.txtIDsite.value=1
		ifrm.document.all.txtIDsite.value =document.chargeForm.txtIDsite.value
		document.all.Charge_card.style.display = 'none';
		document.all.errMassageTD.style.display = 'none';
		document.all.checkCard.style.display = '';
		ifrm.document.forms.chargeForm.submit();		
	
	
		
	//	document.chargeForm.submit();
	
		return false
	}
}	

	function getQueryVariable(variable) {
	  	var query = window.parent.location.search.substring(1);
		//alert(query)
	  	var vars = query.split("&");
	  	for (var i=0;i<vars.length;i++) {
	    	var pair = vars[i].split("=");
	    	if (pair[0] == variable) {
	      		return pair[1];
	    	}
	  	} 
	}
function ValidData(Pm){
	/*
	if(document.chargeForm.btn_Send.value=="Send Details"){
		var ifrm;
		ifrm = frames.frameCheck;
		vars = "N_" + Pm
		vars =vars.split("_")
		ifrm.document.all.txtcodemovie.value = document.chargeForm.txtcodemovie.value	
		ifrm.document.all.supplier.value ="ratuv"
		ifrm.document.all.ccno.value =document.chargeForm.ccno.value
		var iLen = document.chargeForm.ccno.value.length
		ifrm.document.all.txtSaveCcno.value = document.chargeForm.ccno.value.substring(iLen,iLen-6)
		ifrm.document.all.expmonth.value =document.chargeForm.expmonth.value
		ifrm.document.all.expyear.value =document.chargeForm.expyear.value
		ifrm.document.all.sum.value = vars[1]
		ifrm.document.all.clientName.value =document.chargeForm.clientName.value
		ifrm.document.all.txtStore.value =document.chargeForm.txtStore.value
	
		
		
		ifrm.document.all.txtTracking.value =document.chargeForm.txtTracking.value
		ifrm.document.all.holderPhone.value =document.chargeForm.AreaPhone.value+document.chargeForm.Phone.value
		//ifrm.document.all.cvv.value =document.chargeForm.cvv.value
		ifrm.document.all.mycvv.value =document.chargeForm.cvv.value
		//ifrm.document.all.holderId.value =document.chargeForm.holderId.value
		ifrm.document.all.myid.value =document.chargeForm.holderId.value
		ifrm.document.all.email.value =document.chargeForm.email.value
		if(document.chargeForm.txtIDsite.value=="")
			document.chargeForm.txtIDsite.value=1
		ifrm.document.all.txtIDsite.value =document.chargeForm.txtIDsite.value
		document.all.Charge_card.style.display = 'none';
		document.all.errMassageTD.style.display = 'none';
		document.all.checkCard.style.display = '';
		document.chargeForm.action="ProcessChargeCheck.asp";
		ifrm.document.forms.chargeForm.submit();	
	}else{
		document.chargeForm.action="WatchMovie.asp";
		document.chargeForm.submit();
	}	
	*/	
}				