function refreshFrame(formName,action,id1,id2,content,dis1,dis2){
	
	var formName = formName;
	var _action = action;
	var id1 = id1;
	var id2 = id2;
	var content = content;
	var dis1 = dis1;
	var dis2 = dis2;

     $(id1).fadeOut('fast') ;
	 $(id2).fadeOut('slow') ;

//$("#khan_btn").click(function() {
$.ajax({  
  type: "POST",  
  url: _action,  
  data: id1.split("#")[1] + "=" + id1.split("#")[1] ,  
  success: function() {  
 // 	alert(id1.split("#")[1]);
	 var refresh1 = setInterval(function () {
				
				$(id1).attr('src', _action).fadeIn("slow");
		
			
				document.getElementById(dis1).disabled = true;
			
				clearInterval(refresh1);
				
				
		}, 1000);
					
		var refresh2 = setInterval(function () {
				//alert(content);
				$(id2).attr('src', content).fadeIn("slow");
				
				
				document.getElementById(dis2).disabled = true;
				clearInterval(refresh2);
				
				
		}, 2000);
		
	  } 
	  });
	return false;
	
	//});
	
	// document.formName.action = _action;  	
}


function gotoProvider(form){
	var index=form.provider.selectedIndex;
	var provLink=form.provider.options[index].value;
	if (provLink != "") {
        var sendThis = "Get HBO Referral: "+provLink;
        var s=s_gi(s_account);
        s.linkTrackVars='prop1,prop9,server';
        s.linkTrackEvents='None';
        s.server='hbo.com';
        s.prop1="HBO"
        s.prop9=sendThis;
        s.t(this,'o',provLink);
		location=provLink;	
	}

}


function sendEmail(){
	
	
	document.getElementById('email').value = "thank you";
	
	 document.email_form.submit();
	
}
