

function refreshCharCounter(thisForm) {
Response.Write("Hello from Page_Load in default.aspx <br>")

var smsMaxLen = 160;	
		var currLen = smsMaxLen-thisForm.elements['txtmsg'].value.length;
		if (currLen>=0){
		thisForm.elements['txtChar'].value = currLen +" Characters Left...";
		}
		else{
		currLen = thisForm.elements['txtmsg'].value.length-smsMaxLen;
		thisForm.elements['txtChar'].value=currLen +" Characters Too Many!!!";
		}
	}

function change(form){
form.txtMSISDN.text='heloo';
}
function ValDate(oSrc, args){
 args.Value= args.Value.replace(':','-');
 args.Value= args.Value.replace(' ','-');
 var arrValues = args.Value.split('-');
 var iDay, iMonth, iYear,ihour,imin, arrValues;
  
  iDay = arrValues[0];
  iMonth = arrValues[1];
  iYear = arrValues[2];
  ihour = arrValues[3];
  imin = arrValues[4];
var testDate = new Date(iYear, iMonth - 1, iDay,ihour,imin);
  if ((testDate.getDate() != iDay) || (testDate.getMonth() != iMonth - 1) ||
      (testDate.getFullYear() != iYear) || (testDate.getHours() != ihour) || (testDate.getMinutes() != imin)){
        args.IsValid = false;
     return;
}      
  return true;
}

function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

  function cell1(){
window.open("cell_pop.htm#1", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
    function cell2(){
window.open("cell_pop.htm#2", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
    function cell3(){
window.open("cell_pop.htm#3", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
    function cell4(){
window.open("cell_pop.htm#4", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
    function cell5(){
window.open("cell_pop.htm#5", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
    function cell6(){
window.open("cell_pop.htm#6", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
    function cell7(){
window.open("cell_pop.htm#7", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
      function cell8(){
window.open("cell_pop.htm#8", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }
      function cell9(){
window.open("cell_pop.htm#9", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }  
      function cell10(){
window.open("cell_pop.htm#10", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  }   
      function cell11(){
window.open("cell_pop.htm#11", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
      function cell12(){
window.open("cell_pop.htm#12", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
      function cell13(){
window.open("cell_pop.htm#13", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
      function cell14(){
window.open("cell_pop.htm#14", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
      function cell15(){
window.open("cell_pop.htm#15", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  } 

      function cell16(){
window.open("cell_pop.htm#16", "null", "height=500, width=525, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
   
   
   function chart1(){
window.open("topper_pop.htm", "null", "height=540, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
    function starter(){
window.open("starter_pop.htm", "null", "height=540, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
     function smss(){
window.open("tango_sms_pop.htm", "null", "height=540, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
  
    function coverage_nam(){
window.open("coverage_namibia_pop.htm", "null", "height=590, width=620, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
    function roaming_map(){
window.open("roaming_map_pop.htm", "null", "height=335, width=630, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
    function charges(){
window.open("charges_pop.htm", "null", "height=540, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
  
  function fav1(){
window.open("favourites_pop.htm", "null", "height=290, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
  function pic1(){
window.open("personalised_pop.htm", "null", "height=530, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  }

function pic2(){
window.open("threed_pop.htm", "null", "height=440, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
  function tones(){
window.open("list_pop.htm", "null", "height=550, width=630, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function hot(){
window.open("july_hot_pop.htm", "null", "height=450, width=560, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function alert1(){
window.open("alert.htm", "null", "height=450, width=460, scrollbars=yes, top=30, left=30, resizable=yes")
  }

   function cartoon(){
window.open("cartoon.htm", "null", "height=480, width=560, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function tone(){
window.open("phone_tone.htm", "null", "height=430, width=560, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function vouch(){
window.open("voucher_pop.htm", "null", "height=430, width=580, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
    function christmas(){
window.open("christmas_pop.htm", "null", "height=430, width=580, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function scammer(){
window.open("scammer_pop.htm", "null", "height=380, width=440, scrollbars=no, top=30, left=30, resizable=yes")
  }   
  
  function scammer2(){
window.open("scammer_pop2.htm", "null", "height=430, width=585, scrollbars=yes, top=30, left=30, resizable=yes")
  }   
  
  function special(){
window.open("special_pop.htm", "null", "height=380, width=440, scrollbars=no, top=30, left=30, resizable=yes")
  }   
  
 function val(){
window.open("val_pop.htm", "null", "height=430, width=730, scrollbars=yes, top=30, left=30, resizable=yes")
  } 
  
   function train(){
window.open("gone_training_pop.htm", "null", "height=540, width=570, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
  
  
  
  
  
   function bursary(){
window.open("events_archive/bursary.htm", "null", "height=540, width=392, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function cancer(){
window.open("events_archive/cup4cancer.htm", "null", "height=540, width=392, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function credit(){
window.open("events_archive/credit_launch.htm", "null", "height=540, width=392, scrollbars=yes, top=30, left=30, resizable=yes")
  }
  
   function npga(){
window.open("events_archive/npga_champs.htm", "null", "height=540, width=392, scrollbars=yes, top=30, left=30, resizable=yes")
  }    

   function campaign(){
window.open("events_archive/npga_campaign.htm", "null", "height=540, width=392, scrollbars=yes, top=30, left=30, resizable=yes")
  }   

   function nfa(){
window.open("events_archive/nfc_soccer.htm", "null", "height=540, width=392, scrollbars=yes, top=30, left=30, resizable=yes")
  }     
  
   function poly(){
window.open("events_archive/polytechnic.htm", "null", "height=540, width=392, scrollbars=yes, top=30, left=30, resizable=yes")
  }       
  
  
  
  