// Mouseover Button Replace Class Start
var inputArray = document.getElementsByTagName('input');
for(i=0;i<inputArray.length;i++)
{
 if(inputArray[i].className=="CommonBtn")
   {
    inputArray[i].onmouseover =	function() { this.className=this.className+'Hover'; 
   };
		inputArray[i].onmouseout =	function() { this.className='CommonBtn' };
	}
 else if (inputArray[i].className=="CommonBtn BtnWidth90") { 
 
 inputArray[i].onmouseover =	function() {  this.className='CommonBtn'+'Hover '+'BtnWidth90'; };
		inputArray[i].onmouseout =	function() { this.className='CommonBtn BtnWidth90' };
 }
 else if(inputArray[i].className=="CommonBtn BtnWidth106"){
  inputArray[i].onmouseover =	function() { this.className='CommonBtn'+'Hover '+'BtnWidth106' ; };
		inputArray[i].onmouseout =	function() { this.className='CommonBtn BtnWidth106' };
 }
 
 else if(inputArray[i].className=="CommonBtn BtnWidth94"){ 
 inputArray[i].onmouseover =	function() { this.className='CommonBtn'+'Hover '+'BtnWidth94' ; };
		inputArray[i].onmouseout =	function() { this.className='CommonBtn BtnWidth94' }; 
 }
 else if(inputArray[i].className=="CommonBtn Width33px"){ 
 inputArray[i].onmouseover =	function() { this.className='CommonBtn'+'Hover '+'Width33px' ; };
		inputArray[i].onmouseout =	function() { this.className='CommonBtn Width33px' }; 
 }
}
// Mouseover Button Replace Class End 

// Disable Logo Right Click Start

///////////////////////////////////
function clickIE4(){
if (event.button==2){
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

if(document.getElementById("JetLogo"))
document.getElementById("JetLogo").oncontextmenu=new Function("return false");

var active_element2;
var bIsMSIE2;

function downloadLogoMain()
{
if(document.getElementById("JetLogo"))
{
 if(navigator.appName == "Microsoft Internet Explorer") 
  {
    active_element2 = document.activeElement2;
    document.getElementById("JetLogo").onclick = downloadLogo;
    bIsMSIE2 = true;
  }
  else { 
  window.document.getElementById("JetLogo").onclick = downloadLogo;
  }
 }
}

function downloadLogo() {
	window.location.href="http://www.jetairways.com/Images/Logos/Jet-Airways-Logo.zip";
}
downloadLogoMain();
// Disable Logo Right Click End


/* this is for feedback form right bottom donnot delete*/
//modified for JND-1235
if(document.getElementById('FooterIn')!=null && document.getElementById('FooterIn')!="")
{ 
	var maindiv=document.getElementById('FooterIn').getElementsByTagName('div');

  
	for(p=0;p<maindiv.length;p++)
	{
	  
	    			if((maindiv[p].style.right=="0px") && (maindiv[p].style.bottom=="0px") || (maindiv[p].style.right=="0pt") && (maindiv[p].style.bottom=="0pt"))
									{
													var atag=maindiv[p].getElementsByTagName('a');
													
													for(q=0;q<atag.length;q++)
													{
													  var newAttr = document.createAttribute("target");
    											newAttr.nodeValue = "_blank"
    											atag[q].setAttributeNode(newAttr); 
															
													}
									}
	}

}

/*this is for feedback form right bottom donnot delete*/
/* Function for read only starts*/

if(typeof Divid!="undefined" && typeof Divid!="" && typeof Fname!="undefined" && typeof Fname!="" && typeof Mname!="undefined" && typeof Mname!="" && Lname!="undefined" && typeof Lname!="" && typeof Refcode!="undefined" && typeof Refcode!="")
{

var cntrlArr=document.getElementById(Divid).getElementsByTagName("input");

for(i=0;i<cntrlArr.length;i++)
{
  
   if(cntrlArr[i].type=="text" && cntrlArr[i].readOnly==true)
   {
      if(cntrlArr[i].id==Fname || cntrlArr[i].id==Mname || cntrlArr[i].id==Lname ||cntrlArr[i].id==Refcode)
      {
        
          var x=document.getElementById(cntrlArr[i].id).className;              
          document.getElementById(cntrlArr[i].id).className=x+" ReadOnly";
         // alert(document.getElementById(cntrlArr[i].id).className);
          if(document.getElementById(cntrlArr[i].id).value=="")
          {
            document.getElementById(cntrlArr[i].id).setAttribute("onfocus","");
            document.getElementById(cntrlArr[i].id).setAttribute("onblur","");
          }  
        // clearTimeout(t); 
      }
      
   }
 
}

}
/* Function for read only ends*/

