/*	-------------------------------------------------------------
	Abudhabi.ae.V1
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Version:        1.0
	Date:			October 09, 2007
	-------------------------------------------------------------	*/
		
	
	
	var g_USER_AGENT = getAgent();
	
    var tac_pbx1,tac_pba1;/*@cc_on @*//*@if(@_jscript_version>=5)try{tac_pbx1=new ActiveXObject('msxml2.xmlhttp')}catch(e){try{tac_pbx1=new ActiveXObject('Microsoft.XMLHTTP')}catch(e){}}@else;tac_pbx1=false;tac_pba1=true;@end;@*/if(!tac_pbx1&&!tac_pba1)
    {try{tac_pbx1=new XMLHttpRequest();}catch(e){}}
    function tac_post(e,v)
    {
        if(tac_pbx1)
        {
            tac_pbx1.open('POST', apath + 'en/_controls/process.aspx',false);
            tac_pbx1.send('<root><tac>'+e+'</tac><tac>'+v+'</tac></root>');
            return tac_pbx1.responseText;
        }
    }
    
	function checkmail(oSrc, args)
	{
	    if(document.getElementById(tNletter).value == 'Enter your email address')
	    {
	        document.getElementById(tNletter).value = '';
	        args.IsValid = false;
	        ValidatorEnable(document.getElementById(reVal), false);
	    }
	    else 
	    {
	        args.IsValid = true;
	        ValidatorEnable(document.getElementById(reVal), true);
	    }
	}
	
	function cmail()
	{
	    if(document.getElementById(tNletter).value == 'Enter your email address')
	    document.getElementById(tNletter).value = '';
	}
	
	function rmail()
	{
	    if(document.getElementById(tNletter).value == '')
	    document.getElementById(tNletter).value = 'Enter your email address';
	}
	
	function cSearch()
	{
	    if(document.getElementById(tSearch).value == 'Enter the keyword')
	    document.getElementById(tSearch).value = '';
	}
	
	function rSearch()
	{
	    if(document.getElementById(tSearch).value == '')
	    document.getElementById(tSearch).value = 'Enter the keyword';
	}
	
    function sbc(mode)
    {
        if(document.getElementById("F3") != null)
        {
            if(mode) document.getElementById("F3").style.position = 'static';
            else document.getElementById("F3").style.position = 'relative';
        }
    }
    
    function ebc(mode)
    {
        if(document.getElementById("F1") != null)
        {
            if(mode) document.getElementById("F1").style.position = 'static';
            else document.getElementById("F1").style.position = 'relative';
        }
    }
    
    function mopen()
    {
        if(document.getElementById("F1") != null) document.getElementById("F1").style.position = 'static';
        if(document.getElementById("F2") != null) document.getElementById("F2").style.position = 'static';
    }
    
    function mclose()
    {
        if(document.getElementById("F1") != null) document.getElementById("F1").style.position = 'relative';
        if(document.getElementById("F2") != null) document.getElementById("F2").style.position = 'relative';
    }
	
	function printDoc()
	{
	    window.print();
	}
	
	function email(obj)
	{
	   ebc(true); 
	
	   var cLeft = getposOffset(document.getElementById('lnkEmail'),"left");
	   var cTop = getposOffset(document.getElementById('lnkEmail'),"top");
	   
	   document.getElementById('dvSend').style.left = (cLeft - 115) + "px";
	   document.getElementById('dvSend').style.top = (cTop + 17 ) + "px";
	   document.getElementById('dvSend').style.display = "block";
	}
	
	function eclose()
	{
	   ebc(false); 
	   document.getElementById('dvSend').style.display = "none";
    }
	
	function getposOffset(what, offsettype)
	{
        var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
        var parentEl=what.offsetParent;
        while (parentEl!=null)
        {
            totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
            parentEl=parentEl.offsetParent;
        }
        return totaloffset;
    }

    function getAgent()
    {
        var userAgent = navigator.userAgent;
        var charIndex;
        var majorVersion;
        charIndex = userAgent.indexOf("MSIE");
        if(charIndex != -1)
        {
            majorVersion = userAgent.charAt(charIndex + 4 + 1);
            return "IE" + majorVersion;
        }
        else
        {
          charIndex = userAgent.indexOf("Mozilla");
          if(charIndex != -1)
          {
            majorVersion = userAgent.charAt(charIndex + 4 + 1);
            return "NS" + majorVersion;
          }
        }
        return("Unknown");
    }
    
    function URLEncode(s)
    {
	    s = s.replace(" ", "%20");
	    s = s.replace("\"", "%22");
	    s = s.replace("#", "%23");
	    s = s.replace("&", "%26");
	    return s.replace("+", "%2B");
    }
	
	function openStdWin(sPath, sName, iX, iY)
    {
    	if (!iX) iX = 750;
	    if (!iY) iY = 510;

        LeftPosition = (screen.width) ? (screen.width - iX)/2 : 0;
	    TopPosition = (screen.height) ? (screen.height- iY)/2 : 0;

	    try
	    {
	        var win = window.open(sPath, sName,"height=" + iY + ",width=" + iX + ",top=" + TopPosition + ",left=" + LeftPosition + ",toolbar=no,menubar=no,location=no");
	        win.focus();
	    }
	    catch(e) {}
    }
    
    function English(id)
    {
        var LangId=id;
        
        if(document.getElementById('ctl00_hidLangurl') != null)
        {
           var Urls = location.href;
           if(Urls.length > 0)
           {
                var fixpath = Urls.split("/en/en-us/");
                if(fixpath.length > 1)
                {
                    location.href = apath+"en/en-us/"+fixpath[fixpath.length-1];
                }
                else
                {
                    var getpath = Urls.split("/en/");
                    location.href = apath+"en/"+getpath[getpath.length-1];
                }
           }
           else
           {
            location.href = apath+"en/";
           }
        }
        else
        {
            location.href = apath+"en/";
        }
    }
    
    function Arabic(id)
    {
        var LangId=id;
        
        if(document.getElementById('ctl00_hidLangurl') != null)
        {
           var Urls = location.href;
           if(Urls.length > 0)
           {
                var fixpath = Urls.split("/en/en-us/");
                if(fixpath.length > 1)
                {
                    location.href = apath+"ar/ar-ae/"+fixpath[fixpath.length-1];
                }
                else
                {
                    var getpath = Urls.split("/en/");
                    location.href = apath+"ar/"+getpath[getpath.length-1];
                }
           }
           else
           {
            location.href = apath+"ar/";
           }
        }
        else
        {
            location.href = apath+"ar/";
        }
    }
    
    function French(id)
    {
        var LangId=id;
        
        if(document.getElementById('ctl00_hidLangurl') != null)
        {
           var Urls = location.href;
           if(Urls.length > 0)
           {
                var fixpath = Urls.split("/en/en-us/");
                if(fixpath.length > 1)
                {
                    location.href = apath+"fr/fr-FR/"+fixpath[fixpath.length-1];
                }
                else
                {
                    var getpath = Urls.split("/en/");
                    location.href = apath+"fr/"+getpath[getpath.length-1];
                }
           }
           else
           {
            location.href = apath+"fr/";
           }
        }
        else
        {
            location.href = apath+"fr/";
        }
    }
    
    function German(id)
    {
        var LangId=id;
        
        if(document.getElementById('ctl00_hidLangurl') != null)
        {
           var Urls = location.href;
           if(Urls.length > 0)
           {
                var fixpath = Urls.split("/en/en-us/");
                if(fixpath.length > 1)
                {
                    location.href = apath+"de/de-DE/"+fixpath[fixpath.length-1];
                }
                else
                {
                    var getpath = Urls.split("/en/");
                    location.href = apath+"de/"+getpath[getpath.length-1];
                }
           }
           else
           {
            location.href = apath+"de/";
           }
        }
        else
        {
            location.href = apath+"de/";
        }
    }
    
    function Russian(id)
    {
        var LangId=id;
        if(document.getElementById('ctl00_hidLangurl') != null)
        {
           var Urls = location.href;
           if(Urls.length > 0)
           {
                var fixpath = Urls.split("/en/en-us/");
                if(fixpath.length > 1)
                {
                    location.href = apath+"ru/ru-RU/"+fixpath[fixpath.length-1];
                }
                else
                {
                    var getpath = Urls.split("/en/");
                    location.href = apath+"ru/"+getpath[getpath.length-1];
                }
           }
           else
           {
            location.href = apath+"ru/";
           }
        }
        else
        {
            location.href = apath+"ru/";
        }
    }
    
    function Japanese(id)
    {
        var LangId=id;
        if(document.getElementById('ctl00_hidLangurl') != null)
        {
           var Urls = location.href;
           if(Urls.length > 0)
           {
                var fixpath = Urls.split("/en/en-us/");
                if(fixpath.length > 1)
                {
                    location.href = apath+"jp/ja-JP/"+fixpath[fixpath.length-1];
                }
                else
                {
                    var getpath = Urls.split("/en/");
                    location.href = apath+"jp/"+getpath[getpath.length-1];
                }
           }
           else
           {
            location.href = apath+"jp/";
           }
        }
        else
        {
            location.href = apath+"jp/";
        }
    }
    
/* Hotel Search */
function cHotel()
{
    if(document.getElementById('ctl00_content_hfhotel_txtKeyword').value == 'Enter hotel or apartment name')
    document.getElementById('ctl00_content_hfhotel_txtKeyword').value = '';
}

function rHotel()
{
    if(document.getElementById('ctl00_content_hfhotel_txtKeyword').value == '')
    document.getElementById('ctl00_content_hfhotel_txtKeyword').value = 'Enter hotel or apartment name';
}

function checkNewsLetter(oSrc, args)
{
    if(document.getElementById('ctl00_content_hfhotel_txtKeyword').value == 'Enter Hotel or Apartment name')
    {
        document.getElementById('ctl00_content_hfhotel_txtKeyword').value = '';
        args.IsValid = false;
    }
    else 
    {
        args.IsValid = true;
    }
}

function checksearch(oSrc, args)
{
    if(document.getElementById(tSearch).value == 'Enter the keyword')
    {
        document.getElementById(tSearch).value = '';
        args.IsValid = false;
    }
    else 
    {
        args.IsValid = true;
    }
}
	
/*	 Search place */
function Categories(obj)
{
 var selIndex=obj.selectedIndex;
 var ddlCat=document.getElementById('ctl00_content_searchplace_ddlCat');
 
 var o1=new Option();
 var o2=new Option();
 var o3=new Option();
 var o4=new Option();
 var o5=new Option();
 var o6=new Option();
 ddlCat.innerHTML=""; 
 
 
 o1.text="All";
 o1.value = ""; 
 ddlCat.add(o1);    
 
 switch(selIndex)
 {
   case 0:
        ddlCat.disabled = 'disabled';
         break;
   case 1:
         o2.text="5 Star";o2.value = "'5 Star'";ddlCat.add(o2); 
         o3.text="4 Star";o3.value = "'4 Star'";ddlCat.add(o3);
         o4.text="3 Star";o2.value = "'3 Star'";ddlCat.add(o4);
         o5.text="2 Star";o2.value = "'2 Star'";ddlCat.add(o5);
         o6.text="1 Star";o2.value = "'1 Star'";ddlCat.add(o6);
         ddlCat.disabled = '';
         break;   
   case 2:
         o2.text="Delux";o2.value = "'Delux'";ddlCat.add(o2); 
         o3.text="Standard";o3.value = "'Standard'";ddlCat.add(o3);
         ddlCat.disabled = '';
         break;     
 }
}
function SearchPlace()
{
 if(Page_ClientValidate("ISearch"))
 {
   var City= document.getElementById('ctl00_content_searchplace_ddlCity').options[document.getElementById('ctl00_content_searchplace_ddlCity').selectedIndex].value;
   var Type=document.getElementById('ctl00_content_searchplace_ddlType').options[document.getElementById('ctl00_content_searchplace_ddlType').selectedIndex].value;
   var Category=document.getElementById('ctl00_content_searchplace_ddlCat').options[document.getElementById('ctl00_content_searchplace_ddlCat').selectedIndex].value;
   var Keyword=document.getElementById('ctl00_content_searchplace_txtKeyword').value
   
  
   var rtn=tac_post("On_SearchPlace",City +"^"+Type+"^"+Category+"^"+Keyword);
   location.href=apath+"en/searchplace/default.aspx";
   
 }
}
/**************  My Briefcase ****************/
function CheckEmailAvail()
{
      var status = tac_post('on_userEmailAvail',document.getElementById('ctl00_content_txtEmail').value);
      if(status == "1")
      {
        if(document.getElementById('ctl00_content_txtEmail').value != '')
        {
            document.getElementById('ctl00_content_lblAvailEmail').innerHTML = "Email already existing";
            return false;
        }
        else
        {
            document.getElementById('ctl00_content_lblAvailEmail').innerHTML = '';
        }
      }
      else
      {
        document.getElementById('ctl00_content_lblAvailEmail').innerHTML = "";
      }
}
function SetMybriefCaselinkDetails(lnkdetails)
{
  document.getElementById('ctl00_hidMybriefCase').value=lnkdetails+location.href;
 // alert(document.getElementById('ctl00_hidMybriefCase').value);
}
function myBrifcase(obj)
{
   var res=tac_post("on_AddtoBriefcase","");
   if(res=="0") //Session of User Not exists.Means User Not logged in.
   {
     userLogin();
   }
   else
   {
      //alert(document.getElementById('ctl00_hidMybriefCase').value);
      var strVal=document.getElementById('ctl00_hidMybriefCase').value;
      while(strVal.indexOf("&")>0)
      {
      strVal=strVal.replace("&","~");
      }
      
      //alert(strVal);
      var res=tac_post("on_BriefCaseItem_Insertion",strVal);
      ebc(true); 
	
	   var cLeft = getposOffset(document.getElementById('lnkMybriefcase'),"left");
	   var cTop = getposOffset(document.getElementById('lnkMybriefcase'),"top");
	   
	  document.getElementById('divBriefCase').style.left = (cLeft - 115) + "px";
	  document.getElementById('divBriefCase').style.top = (cTop + 17 ) + "px";
	  document.getElementById('divBriefCase').style.display = "block";
	   
      if(res == "1") // Inserted Successfully
      {
	   document.getElementById('tdMessage').innerHTML="Link has been added successfully to your briefcase.";
	   window.setInterval("CloseMybriefcase()",2000);
	 }
	 else // Already this link added to the Briefcase.
	 {
	    document.getElementById('tdMessage').innerHTML="Link has already been added to your briefcase.";
	    window.setInterval("CloseMybriefcase()",2000);
	 }
   }
}
function CloseMybriefcase()
{
ebc(false); 
document.getElementById('divBriefCase').style.display="none"
}
function NewUserRegistration()
{
       ebc(true); 
	   var cLeft = getposOffset(document.getElementById('ctl00_content_txtEmail'),"left");
	   var cTop = getposOffset(document.getElementById('ctl00_content_txtEmail'),"top");
	   
	   document.getElementById('MyBriefcase').style.left = (cLeft - 115) + "px";
	   document.getElementById('MyBriefcase').style.top = (cTop - 50 ) + "px";
	   document.getElementById('MyBriefcase').style.display = "block";
 
       window.setInterval("CloseMessage()",2000);
}
function CloseMessage()
{
ebc(false); 
document.getElementById('MyBriefcase').style.display="none"
}
function DdlCountry(obj)
{
 document.getElementById('ctl00_content_hidCountrySelvalue').value='';
 document.getElementById('ctl00_content_hidCountrySelvalue').value=obj.options[obj.selectedIndex].value;
}
function onLogin(msg,status)
{
  if(status=="1") // user Login Successfully
  {
    location.href=apath+"en/mybriefcase/"; 
  }
  else // User doesn't Exists
  {
  
  }
}
function HOver(obj)
{
	var strPath = obj.src.replace('1.jpg','2.jpg');
	obj.src = strPath;
}

function HOut(obj)
{
	var strPath = obj.src.replace('2.jpg','1.jpg');
	obj.src = strPath;
}
function ValidateNewConfirmPwd(oSrc,args)
{
    if(document.getElementById('ctl00_content_txtNewPassword').value =='')
    {
          args.IsValid = true;
    }
    else
    {
      if(document.getElementById('ctl00_content_txtNewPassword').value == document.getElementById('ctl00_content_txtNewConfirmPassword').value)
      {
      args.IsValid = true;
      }
      else
      {
      args.IsValid = false;
      }
      
    }
}
function BriefCaseItemDelete(strUniquename)
{
  if(confirm("Are you sure you want to delete the link from the BriefCase"))
  {
   document.getElementById('ctl00_content_hidDelete').value=strUniquename;
   document.getElementById('ctl00_content_lnkBriefCase').click(); 
  }
  
}
/* ------ OPinion Poll ----- */
function setValue(val)
{
    document.getElementById('ctl00_content_hflash_hidAnswer').value = val;
}
function setValueDdl(val)
{
    document.getElementById('ctl00_content_hflash_hidAnswer').value= val.options[val.selectedIndex].text;
}
function setValueChk(val,chkid)
{
    var str=document.getElementById('ctl00_content_hflash_hidChkAnswer').value;
    
    if(document.getElementById('ctl00_content_hflash_chklistVote_' +chkid).checked)
    {
     document.getElementById('ctl00_content_hflash_hidChkAnswer').value = val; 
     if(str.length > 1)
     {
        str=str +  val +";";
     }
     else
     {
      str=";" +  val + ";";
     }
    }
    else
    {
      if(str.length > 0)
      {
       val=";"+val;
       str=str.replace(val,'');
      }
    }
    
    document.getElementById('ctl00_content_hflash_hidChkAnswer').value=str;
    
}
//Survey Scripts
function countlines(area)
{   
    var text = area.value.replace(/\s+$/g,"");
    var split = text.split("\n");
    return split.length;
} 

function areaValid(oSrc, args)
{
    var ctl = document.getElementById(oSrc.controltovalidate);
    if(countlines(ctl) > parseInt(oSrc.data))
    {
        args.IsValid = false;
    }
    else args.IsValid = true;
}
/* Survey Scripts End */

function ShowHideDDL(visibility) {
	for(j=0;j<document.forms.length; j++) {
		for(i=0;i<document.forms[j].elements.length;i++) {
			if(document.forms[j].elements[i].type != null) {
				if(document.forms[j].elements[i].type.indexOf('select') == 0)
					document.forms[j].elements[i].style.display =visibility;
			}
		}
	}
}

/*------------- Virtual Tour ----------------*/

function loadimage(param)
{

    if(document.getElementById('ctl00_content_imgMain') != null)
    {
        document.getElementById('ctl00_content_imgMain').src=param;
        document.getElementById('ctl00_content_lnkImg').href = param;
        
        
        document.getElementById('trvtImage').style.display ='';
        document.getElementById('trvtMedia').style.display ='none';
        
    }
    //var flashMovie=getFlashMovieObject("myFlashMovie");
	//flashMovie.SetVariable("videopath.text", apath+"en/virtualtour/welcome.flv");
	PlayMovie("welcometest.flv");
	
}

function SendDataToFlashMovie(param)
{

    document.getElementById('trvtMedia').style.visibility='visible';  
  
	document.getElementById('trvtImage').style.display ='none';
    document.getElementById('trvtMedia').style.display ='';
  
  
    //var flashMovie=getFlashMovieObject("myFlashMovie");
      
	//flashMovie.SetVariable("videopath.text", param);
	PlayMovie(param);
}
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    var br=whichBrs();
    if (br=="Firefox")
    return window.parent.document.embeds[0];
    else
    {
        return window.document[movieName];
    }
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
function whichBrs() 
{
    var agt=navigator.userAgent.toLowerCase();
    if (agt.indexOf("opera") != -1) return 'Opera';
    if (agt.indexOf("staroffice") != -1) return 'Star Office';
    if (agt.indexOf("webtv") != -1) return 'WebTV';
    if (agt.indexOf("beonex") != -1) return 'Beonex';
    if (agt.indexOf("chimera") != -1) return 'Chimera';
    if (agt.indexOf("netpositive") != -1) return 'NetPositive';
    if (agt.indexOf("phoenix") != -1) return 'Phoenix';
    if (agt.indexOf("firefox") != -1) return 'Firefox';
    if (agt.indexOf("safari") != -1) return 'Safari';
    if (agt.indexOf("skipstone") != -1) return 'SkipStone';
    if (agt.indexOf("msie") != -1) return 'Internet Explorer';
    if (agt.indexOf("netscape") != -1) return 'Netscape';
    if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
    if (agt.indexOf('\/') != -1) {
    if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
    return navigator.userAgent.substr(0,agt.indexOf('\/'));}
    else return 'Netscape';} else if (agt.indexOf(' ') != -1)
    return navigator.userAgent.substr(0,agt.indexOf(' '));
    else return navigator.userAgent;
}
function SelVideo(obj)
{
 //alert('in');
 var Item = ctl00_content_virtualnavbar.FindItemById("video");                       
 //SendDataToFlashMovie(apath+"en/virtualtour/welcome.flv")
 PlayMovie("welcometest.flv");
ctl00_content_virtualnavbar.collapseAll();

            //var NavBarItems = ctl00_content_virtualnavbar.Items();
            //alert(NavBarItems[2].Text); 
            //alert(Item.Text);

              //Item.SetProperty("Visible",true);
Item.set_expanded(true);  
}
function SelImages(obj)
{
 ctl00_content_virtualnavbar.collapseAll();
 var Item = ctl00_content_virtualnavbar.FindItemById("images");
 Item.set_expanded(true);
}
/* New Virtual tour Scripts */
function PlayMovie(filename)
{
    var player=document.getElementById('flvPlayer');
    player.innerHTML="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='387' height='302' bgcolor='#000000' id='myFlashMovie' name='myFlashMovie'><param name='movie' value='zoom.swf' /><param name='FlashVars' value='videos="+ filename+"&fms=&app=' /><param name='allowFullScreen' value='true' /><param name='quality' value='high'/><embed src='zoom.swf' width='387' height='302' bgcolor='#000000' flashvars='videos=" + filename +"&fms=&app=' allowfullscreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'  id='myFlashMovie' name='myFlashMovie'/></object>";
}
/* Search Event categories Show and Hide */
function ShowType(obj)
{
 if(obj.options[obj.selectedIndex].value=='events')
  {
   document.getElementById('ctl00_content_tdEventCategories').style.display='';
   document.getElementById('ctl00_content_tdEventCategories').style.visibility='visible';
  }
  else
  {
    document.getElementById('ctl00_content_tdEventCategories').style.display='none';
    document.getElementById('ctl00_content_tdEventCategories').style.visibility='hidden';
  }
}

function setToTheme()
{
    if(document.getElementById('tdHeader').className == 'logoRed')
    {
        document.getElementById('tdHeader').className='logoDesert';
        document.getElementById('tdFooter').className='footerDesert';
    }
    else if(document.getElementById('tdHeader').className == 'logoDesert')
    {
        document.getElementById('tdHeader').className='logoCity';
        document.getElementById('tdFooter').className='footerCity';
    }
    else if(document.getElementById('tdHeader').className == 'logoCity')
    {
        document.getElementById('tdHeader').className='logoSea';
        document.getElementById('tdFooter').className='footerSea';
    }
    else if(document.getElementById('tdHeader').className == 'logoSea')
    {
        document.getElementById('tdHeader').className='logoRed';
        document.getElementById('tdFooter').className='footerRed';
    }
    
}

function setToThemePanel()
{
   if(document.getElementById('tdHeaderPanel').className == 'hoptionsRed')
    {
        document.getElementById('tdHeaderPanel').className='hoptionsDesert';
    }
    else if(document.getElementById('tdHeaderPanel').className == 'hoptionsDesert')
    {
        document.getElementById('tdHeaderPanel').className='hoptionsCity';
    }
    else if(document.getElementById('tdHeaderPanel').className == 'hoptionsCity')
    {
        document.getElementById('tdHeaderPanel').className='hoptionsSea';
    }
    else if(document.getElementById('tdHeaderPanel').className == 'hoptionsSea')
    {
        document.getElementById('tdHeaderPanel').className='hoptionsRed';
    }
    
}


function openWin(url)
{
   // window.open(url,"_blank" ,"width=" + width + "px", "height=" + height + "px");
 window.open(url, "_blank" ,"width=620px,height=620px");
}
