﻿ 
 /*Implementing Modal popups to login box, forget password box and password confirmation box*/
 /*...........Start..................*/
 
$(document).ready(function(){
	 $('#login_box').jqm({modal: true,trigger: 'area.jqModal_login'});
	 
	 $('#forget_password').jqm({modal:true,trigger:'a.jqModal_forget_password'});
	  $('#password_confirmation').jqm({modal:true,trigger:'a.jqModal_password_confirmation'});
	  
	  
	
 });
 
  /*...........End..................*/
 
 /*Forget Forget Password Confirmation Box Close scripts */
 /*...........Start..................*/
 
 function close_all()
 {
 $('#password_confirmation').jqmHide(); 
 $('#forget_password').jqmHide(); 
 $('#login_box').jqmHide(); 
 
 }
 
  /*...........End..................*/
 
 
 
 /*Forget Password Login Box scripts */
 /*...........Start..................*/
 
function forgetpassword()
{

var studentid = $("input#txtforgetpass_userid").val();

if(studentid == ""|| studentid == " " || studentid == null)
{
alert("Please enter valid email address");
return false;


}


var url = "ForgotYourPassword.aspx?emailid="+studentid;

AjaxRequest.get(

  {
  	'url':url
    ,'onLoading':function() {$("div#forgetpassword_message").html("<img src='images/loader.gif' />&nbsp;Please Wait..."); }
    ,'onLoaded':function() {  }
    ,'onInteractive':function() {  }
    ,'onComplete':function() {  }
    ,'onSuccess':function(req) {
		
	var response = req.responseText;
	 var stat = response.split(",");
	 	
	if(stat[0] == "ok")
	{
	
	$("div#forgetpassword_message").html(" ");
	 $('#password_confirmation').jqmShow(); 
	 $("div#pass_userid").html("Dear "+stat[1]+",");
	
	}
	else
	
	{
	$("div#forgetpassword_message").html(req.responseText); 
	}
	
	
    }
	,'onError':function(req){
	$("div#forgetpassword_message").html(req.responseText); 

	}
  }
);


}
 /*...........End..................*/
 
 
 
 /*Forget  Login Box scripts */
 /*...........Start..................*/

function verifylogin()
{
var userid = $("input#txtuserid").val();
var pass = $("input#txtpassword").val();

if(userid == "" || userid == " " || userid == null)
{
alert('Please enter e-mail id ');
return false;
}

if(pass == "" || pass == " " || pass == null)
{
alert('Please enter your password ');
return false;
}


var url = "../../verifystudentlogin.aspx?userid="+userid+"&pass="+pass;

AjaxRequest.get(

  {
  	'url':url
    ,'onLoading':function() {$("div#verify_login_message").html("<img src='../../images/loader.gif' />&nbsp;Please Wait..."); }
    ,'onLoaded':function() {  }
    ,'onInteractive':function() {  }
    ,'onComplete':function() {  }
    ,'onSuccess':function(req) {
	
	//$("div#forgetpassword_message").html(req.responseText); 
	var response = req.responseText;
 var stat = response.split(",");
	 	
	if(stat[0] == "ok")
	{
	    if(stat[1] == "student")
	    {
    	//$('#login_box').jqmHide(); 
         location.href="../../ecampus/";
	    }
	    else
	    {
	  //  $('#login_box').jqmHide(); 
         location.href="../../teacher/";
	    
	    }
	    
	    
	    
	    
	
	}
	else
	
	{
	$("div#verify_login_message").html(req.responseText); 
	}
	
	
    }
	,'onError':function(req){
	$("div#verify_login_message").html(req.responseText); 

	}
  }
);



}

 /*...........End..................*/
 
 function slide_button(id,cls)
 {
         for(var x=1;x<=4;x++)
         {
                     if(x == id)
                     {
                     document.getElementById(x).className = cls+"_selected";
                     
                     
                     
                     }
                 else
                 {
                 
                 if(x == 1){document.getElementById(x).className = 'intro';}
                  if(x == 2){document.getElementById(x).className = 'events';}
                   if(x == 3){document.getElementById(x).className = 'philosophy';}
                    if(x == 4){document.getElementById(x).className = 'testimonials';}
                 
                 }
         
         }
  
 }
 
//  $(document).ready(
//				function(){
//			
//					$('.fade').innerfade({
//						speed: 1000,
//						timeout: 6000,
//						type: 'sequence',
//						containerheight: '150px'
//					});
//					
//			});
			
			
			
function tab2_selection(catid,x){
    for(var i=1;i<=6;i++){
    if(catid+'_'+x==catid+'_'+i){
    $('div#'+catid+'_'+i).find('a').css('color','#000')
    $('div#'+catid+'_'+i).find('a').addClass('tab2_selected')}
    else{
    $('div#'+catid+'_'+i).find('a').css('color','#fff')
    $('div#'+catid+'_'+i).find('a').removeClass('tab2_selected')}}
   
     if(x == "1")
    {
  
    req("../../loadcoursedetailsmain.aspx?catid="+catid, catid+"_category_details");
   return;
    }
   

    if(x == "2")
    {
    req("../../loadcoursedetails.aspx?catid="+catid+"&param=Aim", catid+"_category_details");return;
    }
    
     if(x == "3")
    {
    req("../../loadcoursedetails.aspx?catid="+catid+"&param=Overview",catid+"_category_details");return;
    }
    
      if(x == "4")
    {
    req("../../loadcoursedetails.aspx?catid="+catid+"&param=SampleLession",catid+"_category_details");return;
    }
    
       if(x == "5")
    {
    req("../../loadcoursedetails.aspx?catid="+catid+"&param=StudentSay",catid+"_category_details");return;
    }
    
       if(x == "6")
    {
    req("../../loadcoursedetails.aspx?catid="+catid+"&param=Requirements",catid+"_category_details");return;
    }
    
    

}





function req(url1,target)
{

AjaxRequest.get(

  {
  	'url':url1
    ,'onLoading':function() {$("div#"+target).html("<img src='slide_images/loader.gif' />&nbsp;Please Wait..."); }
    ,'onLoaded':function() {  }
    ,'onInteractive':function() {  }
    ,'onComplete':function() {  }
    ,'onSuccess':function(req) {
		

	$("div#"+target).html(req.responseText);     }
	,'onError':function(req){
	$("div#"+target).html(req.responseText);    }
  }
);


}

function getlessontime(coursecode,timezoneindex,catid)
{
req("../../loadlessontime.aspx?coursecode="+coursecode+"&timezoneindex="+timezoneindex,catid+"_lbllessons");


}

function openiframe(catid)
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe onload="hide_loader()" src="../../registration.aspx?catid='+catid+'"  allowtransparency="true"   frameborder="0" width="99%" height="500px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);

}

function open1()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:235px;"; id="iframeregistration" onload="hide_loader()" src="../../video.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function malesamplebar()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/malesamplebar.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function malesamplearabic()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/malesamplearabic.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function malesampleconv()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/malesampleconv.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function malesampletajweed()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/malesampletajweed.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function malesampletilawah()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/malesampletilawah.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function malesamplehifz()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/malesamplehifz.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function femalesamplebar()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/femalesamplebar.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function femalesamplearabic()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/femalesamplearabic.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function femalesampleconv()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/femalesampleconv.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function femalesampletajweed()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/femalesampletajweed.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function femalesampletilawah()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/femalesampletilawah.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function femalesamplehifz()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/femalesamplehifz.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function samplepurification()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/samplepurification.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function sampleseerah()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/sampleseerah.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function samplemuslimhome()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/samplemuslimhome.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function samplefoi()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/samplefoi.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function open2()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:235px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/video1.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function childrenbar()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/childrenbar.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function childrenarabic()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/childrenarabic.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function childrenconv()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/childrenfemalesampleconv.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function childrentajweed()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/childrentajweed.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function childrentilawah()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/childrentilawah.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function childrenhifz()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe style="margin-left:50px;"; id="iframeregistration" onload="hide_loader()" src="../../samplevideos/childrenhifz.html"  frameborder="0" width="770px" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function open1on1baradult()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe id="iframeregistration" onload="hide_loader()" src="1on1tuition.html"  frameborder="0" width="770px" height="550px" scrolling="yes" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function readbar()
{
$('div#iframe_div').html("");
$('div#loading').show();


var x  = '<iframe id="iframeregistration" onload="hide_loader()" src="read/readbar.html"  frameborder="0" width="770px" height="550px" scrolling="yes" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function groupprice_enquire(course)
{ 
$('div#iframe_div').html("");
$('div#loading').show();
var courses = course.replace("’","|");
var courses = courses.replace("–",")");
var x  = '<iframe style="margin-left: 30px; margin-top:10px;" id="iframeregistration" onload="hide_loader()" src="../1on1pricingcontact.php?course='+courses+'"  frameborder="0" width="100%" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function on1pricing_enquire(plan,ndays,lesson,duration,mfees)
{
$('div#iframe_div').html("");
$('div#loading').show();
var mfees = mfees.replace("£","|");
var x  = '<iframe style="margin-left: 30px; margin-top:10px;" id="iframeregistration" onload="hide_loader()" src="../1on1pricingcontact.php?plan='+plan+'&ndays='+ndays+'&lesson='+lesson+'&duration='+duration+'&mfees='+mfees+'"  frameborder="0" width="100%" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function childrenpricing_enquire(plan,ndays,lesson,duration,mfees)
{
$('div#iframe_div').html("");
$('div#loading').show();
var mfees = mfees.replace("£","|");

var x  = '<iframe style="margin-left: 30px; margin-top:10px;" id="iframeregistration" onload="hide_loader()" src="../1on1pricingcontact.php?plan='+plan+'&ndays='+ndays+'&lesson='+lesson+'&duration='+duration+'&mfees='+mfees+'&section=1 on 1 Children" frameborder="0" width="100%" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

var Arab = '';
function pricing(Nodays,section)
{
Arab = document.getElementById('Arab'+section).value;
 if(Arab == 'Yes' || Arab == '')
 { 
   rate = arab_Yes(Nodays);
   calculation(rate,Nodays,section);
   
 }
 else
 {
   rate = arab_No(Nodays);
   calculation(rate,Nodays,section);
   
 } 
}

function arab(arab,section)
{
 Arab = arab;
 Nodays = document.getElementById('lesson'+section).value;

 if(Arab == 'No')
 {
   rate = arab_No(Nodays);
   calculation(rate,Nodays,section);
 } 
  else
 {
   rate = arab_Yes(Nodays);
   calculation(rate,Nodays,section);

 }
}

function arab_Yes(Nodays)
{ 
  if(Nodays == 1)
   rate = 10;
  else if(Nodays == 2)
   rate = 9;
  else if(Nodays == 3)
   rate = 8.5;  
  else if(Nodays == 5)
   rate = 8;
  else if(Nodays == 7)
   rate = 7.5; 
  return rate; 
}

function arab_No(Nodays)
{ 
  if(Nodays == 1)
   rate = 8;
  else if(Nodays == 2)
   rate = 7.2;
  else if(Nodays == 3)
   rate = 6.8;  
  else if(Nodays == 5)
   rate = 6.4;
  else if(Nodays == 7)
   rate = 6; 
  return rate; 
}

function calculation(rate,Nodays,section)
{
  monthlyDuration = Nodays * 4;
  monthlyFees = Math.round(rate * monthlyDuration);
  document.getElementById('monthlyduration'+section).innerHTML = monthlyDuration+' hours a month';
  document.getElementById('monthlyfee'+section).innerHTML = '<span class="style8">£'+monthlyFees+'</span>';
  document.getElementById('mdurationhid'+section).value = monthlyDuration;
  document.getElementById('mfeehid'+section).value = monthlyFees;
}


function openenquire(arab,nodays,lessonduration,monthlyduration,monthlyfee)
{
$('div#iframe_div').html("");
$('div#loading').show();
var monthlyfee = monthlyfee.replace("£","|");

var x  = '<iframe style="margin-left: 30px; margin-top:10px;" id="iframeregistration" onload="hide_loader()" src="../enquire.php?Arab='+arab+'&nodays='+nodays+'&lessonduration='+lessonduration+'&monthlyduration='+monthlyduration+'&monthlyfee='+monthlyfee+'"  frameborder="0" width="100%" height="550px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}

function contactformvalidation3()
{
	
if(document.form1.ddlheard.value=="null")
{
alert("Please choose where did you hear us");
document.form1.ddlheard.focus();
return false;
}

if(document.form1.txtfirstname.value=="")
{
alert("Please Enter Your First Name");
document.form1.txtfirstname.focus();
return false;
}

if(document.form1.txtlastname.value=="")
{
alert("Please Enter Your Last Name");
document.form1.txtlastname.focus();
return false;
}

if(document.form1.ddlgender.value=="null")
{
alert("Please Your Gender");
document.form1.ddlgender.focus();
return false;
}

if(document.form1.txtemail.value=="")
{
alert("Please Enter Your Email ID");
document.form1.txtemail.focus();
return false;
}
var txtemail=document.form1.txtemail
	
	if ((txtemail.value==null)||(txtemail.value=="")){
		alert("Please Enter your txtemail ID")
		txtemail.focus()
		return false
	}
	if (echeck(txtemail.value)==false){
		txtemail.value=""
		txtemail.focus()
		return false
	}
	

if(document.form1.txtconfirmemail.value=="")
{
alert("Please Enter Confirm Email ID");
document.form1.txtconfirmemail.focus();
return false;
}
var txtconfirmemail=document.form1.txtconfirmemail
	
	if ((txtconfirmemail.value==null)||(txtconfirmemail.value=="")){
		alert("Please Enter your txtemail ID")
		txtconfirmemail.focus()
		return false
	}
	if (echeck(txtconfirmemail.value)==false){
		txtconfirmemail.value=""
		txtconfirmemail.focus()
		return false
	}


function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Please Enter vaild E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Please Enter vaild E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Please Enter vaild E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Please Enter vaild E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Please Enter vaild E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Please Enter vaild E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Please Enter vaild E-mail ID")
		    return false
		 }

 		 return true					
	}


if(document.form1.txtemail.value != document.form1.txtconfirmemail.value)
{
alert("Email id and Confirm Email id are not match");
document.form1.txtconfirmemail.focus();
return false;
}

if(document.form1.txtmobile.value=="")
{
alert("Please Enter Your Mobile Number");
document.form1.txtmobile.focus();
return false;
}

if(document.form1.txthometel.value=="")
{
alert("Please Enter Your Home Telephone Number");
document.form1.txthometel.focus();
return false;
}

if(document.form1.ddlcountry.value=="null")
{
alert("Please Choose Your Country Name");
document.form1.ddlcountry.focus();
return false;
}

if(document.form1.ddltimezone.value=="null")
{
alert("Please Choose Your TimeZone");
document.form1.ddltimezone.focus();
return false;
}

if(document.form1.timings.value=="")
{
alert("Please Enter Your Timings");
document.form1.timings.focus();
return false;
}

if(document.form1.comments.value=="")
{
alert("Please Enter Your Comments");
document.form1.comments.focus();
return false;
}
return true
}

function teacher(enquire)
{
$('div#iframe_div').html("");
$('div#loading').show();

var x  = '<iframe style="margin-left: 30px; margin-top:50px;" id="iframeregistration" onload="hide_loader()" src="../teacherform.php?enquire='+enquire+'"  frameborder="0" width="770px" height="350px" scrolling="no" ></iframe>';

setTimeout(function() {$('div#iframe_div').html(x);}, 3000);
window.scroll(0,0);
}


function hide_loader()
{
$('div#loading').hide();

}


 function hidetopbar()
{
   // var x  = '<iframe id="iframesecure" src="'+url+'"  allowtransparency="true"   frameborder="0" width="99%" height="500px" scrolling="no" ></iframe>';
    //   $('div#iframe_div_1').html(x);
    
    $('#close_bar').hide(); 
}

function showtopbar()
{

$('#close_bar').show();

}

