	// JavaScript Document
  function overlay1(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox1').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox1').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay2(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox2').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox2').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }


  function overlay3(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox3').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox3').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay4(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox4').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox4').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay5(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox5').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox5').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay6(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox6').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox6').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay7(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox7').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox7').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay8(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox8').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox8').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay9(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox9').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox9').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlay10(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox10').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox10').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay11(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox11').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox11').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay12(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox12').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox12').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay13(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox13').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox13').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay14(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox14').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox14').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay15(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox15').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox15').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay16(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox16').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox16').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay17(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox17').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox17').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay18(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox18').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox18').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  function overlay20(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox20').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox20').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  function overlay21(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox21').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox21').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  function overlay22(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox22').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox22').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  function overlay23(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox23').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox23').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  function overlay24(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox24').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox24').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  function overlay25(showhide){
   if(showhide == "show"){
        document.getElementById('overlay_popupbox25').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox25').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay26(showhide){
   if(showhide == "show"){
        document.getElementById('overlay_popupbox26').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox26').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  function overlay27(showhide){
   if(showhide == "show"){
        document.getElementById('overlay_popupbox27').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox27').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay28(showhide){
   if(showhide == "show"){
        document.getElementById('overlay_popupbox28').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox28').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  
  function overlay50(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox50').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox50').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  function overlay55(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox55').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox55').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
  
  
    function overlayalert1(showhide){
    if(showhide == "show"){
       
	   document.getElementById('overlay_popupbox2').style.visibility="hidden";
	   document.getElementById('alert_overlay_div1').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('alert_overlay_div1').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlayalert2(showhide){
    if(showhide == "show"){
        document.getElementById('alert_overlay_div2').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('alert_overlay_div2').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

  function overlayalert3(showhide){
    if(showhide == "show"){
        document.getElementById('alert_overlay_div3').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('alert_overlay_div3').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }

$(document).ready(function() {
	 var body_id = $("body").attr("id");
	 if(body_id == "payment_transfer")
	 {
		 $("#fade").css("height", $(document).height()- 686); 
	 }
	 else if(body_id == "my_profile")
	 {
		 $("#fade").css("height", $(document).height()- 3100); 
	 }
	 else if(body_id == "service_center")
	 {
		 $("#fade").css("height", $(document).height()+ 130); 
	 }
	 else
	 {
		 $("#fade").css("height", $(document).height()- 130); 
	 }
});

/*...............added by ashok on date 29 April 2011.........................*/
function overlay19(showhide){
    if(showhide == "show"){
        document.getElementById('overlay_popupbox19').style.visibility="visible"; /* If the function is called with the variable 'show', show the overlay box */
		document.getElementById('fade').style.display='block';
    }else if(showhide == "hide"){
        document.getElementById('overlay_popupbox19').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the overlay box */
		document.getElementById('fade').style.display='none';
    }
  }
