 function openDiv(mode,divid) 
 {        
     if(mode=='show')        
     {                        
         document.getElementById(divid).style.display='block';                    
         return false;          
     }       
     if(mode=='hide')         
     {                      
         document.getElementById(divid).style.display='none';                  
         return false;              
     }                 
     return true;   
 } 
 function closeRate(divId)
{      
    var divName="ucInterioProductsRight_"+divId;
    document.getElementById(divName).style.display="none";
} 
 function openHideDivs(divToOpen,divToHide)
 {
     document.getElementById(divToOpen).style.display='block';
     if(divToOpen=="divFeatures")
     {
        document.getElementById('ucInterioProductsRight_imgFeatures').src="../GodrejInterio/images/feature_tab.gif";
        document.getElementById('ucInterioProductsRight_imgSpec').src="../GodrejInterio/images/specs_tab_white.gif";
        document.getElementById('ucInterioProductsRight_imgFeatures').style.cursor="default";
        document.getElementById('ucInterioProductsRight_imgSpec').style.cursor="pointer";
     }
     else
     {
        document.getElementById('ucInterioProductsRight_imgSpec').src="../GodrejInterio/images/specs_tab_grey.gif";
        document.getElementById('ucInterioProductsRight_imgFeatures').src="../GodrejInterio/images/feature_tab_white.gif";
        document.getElementById('ucInterioProductsRight_imgFeatures').style.cursor="pointer";
        document.getElementById('ucInterioProductsRight_imgSpec').style.cursor="default";
     }
     
     var featureSrc=document.getElementById('ucInterioProductsRight_imgFeatures').src;
     var specSrc=document.getElementById('ucInterioProductsRight_imgSpec').src;
     document.getElementById('ucInterioProductsRight_hidCurrentImages').value=featureSrc+"~~"+specSrc;
     document.getElementById(divToHide).style.display='none';
 }
 function showImageOnMouseOver(imgId)
 {
     var imgSrc=document.getElementById(imgId).src;
     var featureSrc=document.getElementById('ucInterioProductsRight_imgFeatures').src;
     var specSrc=document.getElementById('ucInterioProductsRight_imgSpec').src;
     
     if(imgId=="ucInterioProductsRight_imgFeatures")
     {
        document.getElementById(imgId).src="../GodrejInterio/images/feature_tab.gif";
     }
     else
     {
        document.getElementById(imgId).src="../GodrejInterio/images/specs_tab_grey.gif";
     }
     document.getElementById('ucInterioProductsRight_hidCurrentImages').value=featureSrc+"~~"+specSrc;
 }
 function showImageOnMouseOut(imgId)
 {
      var imgSrc=new Array();
     imgSrc=document.getElementById('ucInterioProductsRight_hidCurrentImages').value.split('~~');
     if(imgId=="ucInterioProductsRight_imgFeatures")
     {
        document.getElementById(imgId).src=imgSrc[0];
     }
     else
     {
        document.getElementById(imgId).src=imgSrc[1];
     }
 }
 function loadflash(filename)
    {
         var flash='<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="402" height="346" id="flatron_tvad" align="middle" VIEWASTEXT>';
         flash+='<param name="allowScriptAccess" value="sameDomain" />';
         flash+='<param name="movie" value="http://192.168.0.10/Godrej/video_player.swf?filename=flash/' + filename +'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />';   
         flash+='<embed src="video_player.swf?filename=http://192.168.0.10/Godrej/flash/' + filename +'" quality="high" bgcolor="#ffffff" width="402" height="346" name="flatron_tvad" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
         document.getElementById('ucLeftAdvertisementControl_divflash').innerHTML=flash;
         enableVideo();  
     }
     
     function enableVideo()
     {
        
         document.getElementById('ucLeftAdvertisementControl_divOk').style.display = 'block'; 
         document.getElementById('ucLeftAdvertisementControl_dlVideo').style.display = 'none';
     }
     
     function DisplayDl()
     {
        document.getElementById('ucLeftAdvertisementControl_divOk').style.display = 'none'; 
         document.getElementById('ucLeftAdvertisementControl_dlVideo').style.display = 'block';
     }
 
//Dynamically displaying the Sub Menu list in to Interio Top User Control
//Written By:-Vinit(27/04/09)
function DisplaySubMenu(IdNumber)
    {        
        //alert('Hi');
        var count=0;
        //var submenucount=document.getElementById("hdnsubmenucount").value;
        var submenucount=document.getElementById("ucInterioTop_hdnsubmenucount").value;        
	    //alert(submenucount);
	    
	    var a1 = new Array();
        a1=submenucount.split(",");
        //alert(a1.length);  
        for(count=0;count<a1.length;count++)
        {
            var ULId='submenu'+a1[count];                       
            document.getElementById(ULId).style.display="none";
        }	
        
        var ULid='submenu'+IdNumber;        
        document.getElementById(ULid).style.display="block";       
    }
    
    
//Dynamically displaying the Sub Sub Menu list in to Interio Top User Control
//Written By:-Vinit(27/04/09)
function DisplaySubSubMenu(IdNumber)
    {        
        var count=0;
        //var submenucount=document.getElementById("hdnsubmenucount").value;
        var subsubmenucount=document.getElementById("ucInterioTop_hdnsubsubmenucount").value;        
	    //alert(submenucount);
	    
	    var a1 = new Array();
        a1=subsubmenucount.split(",");
        //alert(a1.length);  
        for(count=0;count<a1.length;count++)
        {
            var ULId='subsubmenu'+a1[count];                       
            document.getElementById(ULId).style.display="none";
        }	
        
        var ULid='subsubmenu'+IdNumber;        
        document.getElementById(ULid).style.display="block";       
    }
    
    
    
//Hide all Menu Item on mouse over event of UL
//Written By:-Vinit(04/05/09)
function HideAllMenu()
    {        
        //alert('Hi');
        var count=0;
        //var submenucount=document.getElementById("hdnsubmenucount").value;
        var submenucount=document.getElementById("ucInterioTop_hdnsubmenucount").value;        
	    //alert(submenucount);
	    
	    var a1 = new Array();
        a1=submenucount.split(",");
        //alert(a1.length);  
        for(count=0;count<a1.length;count++)
        {
            var ULId='submenu'+a1[count];                       
            document.getElementById(ULId).style.display="none";
        }	     
    }
    
    
//Hide all Menu Item on mouse over event of UL
//Written By:-Vinit(04/05/09)
function HideSubSubMenu()
    {        
        var count=0;        
        var subsubmenucount=document.getElementById("ucInterioTop_hdnsubsubmenucount").value;        
	    //alert(submenucount);	    
	    var a1 = new Array();
        a1=subsubmenucount.split(",");
        //alert(a1.length);  
        for(count=0;count<a1.length;count++)
        {
            var ULId='subsubmenu'+a1[count];                       
            document.getElementById(ULId).style.display="none";
        }     
    }
    
    
//Hide all Menu Item on mouse over event of UL 
//Written By:-Vinit(05/05/09)
function ShowFeedback(status)
    {     
        //alert('Called');
        //alert(status);
        ResetControl("Feedback");
        if(status)
        {
            document.getElementById("ucInterioProductsRight_divfeedback").style.display="block";
            document.getElementById("ucInterioProductsRight_divfriend").style.display="none";
        }  
        else
            document.getElementById("ucInterioProductsRight_divfeedback").style.display="none"; 
    }
    
//Hide all Menu Item on mouse over event of UL 
//Written By:-Vinit(05/05/09)
function ShowFriend(status)
    {     
        //alert('Called');
        //alert(status);
        ResetControl("Friend");
        if(status)
        {
            document.getElementById("ucInterioProductsRight_divfriend").style.display="block";
            document.getElementById("ucInterioProductsRight_divfeedback").style.display="none";  
        }
        else
            document.getElementById("ucInterioProductsRight_divfriend").style.display="none"; 
    }
    
 //Reseting the Feedback and Friend controls   
 function ResetControl(str)
 {
    if(str=="Feedback")
    {
        document.getElementById("ucInterioProductsRight_txtName").value="";
        document.getElementById("ucInterioProductsRight_txtEmail").value="";
        document.getElementById("ucInterioProductsRight_txtDescription").value="";
	document.getElementById("ucInterioProductsRight_txtPhoneNumber").value="";
        document.getElementById("ucInterioProductsRight_drdlistState").value="0";
        document.getElementById("ucInterioProductsRight_txtCity").value="";
        return false;
    }
    else if(str=="Friend")
    {
        document.getElementById("ucInterioProductsRight_txtFriendName").value="";
        document.getElementById("ucInterioProductsRight_txtYourName").value="";
        document.getElementById("ucInterioProductsRight_txtYourEmail").value="";
        document.getElementById("ucInterioProductsRight_txtFriendEmail").value="";
        document.getElementById("ucInterioProductsRight_txtFDescription").value="";
        document.getElementById("ucInterioProductsRight_chkFriend").checked=false;
        return false;
    }
    else if(str=="Msg")
    {
        document.getElementById("ucInterioAskAnExpertRight_txtName").value="";
        document.getElementById("ucInterioAskAnExpertRight_txtEmail").value="";
        document.getElementById("ucInterioAskAnExpertRight_txtOrganization").value="";        
        document.getElementById("ucInterioAskAnExpertRight_txtPhone").value="";
        document.getElementById("ucInterioAskAnExpertRight_txtAddress").value="";
        document.getElementById("ucInterioAskAnExpertRight_txtCity").value="";
        document.getElementById("ucInterioAskAnExpertRight_drdlistState").value="0";
        document.getElementById("ucInterioAskAnExpertRight_txtQuery").value="";
        document.getElementById("ucInterioAskAnExpertRight_divMessage").style.display="none"; 
        //divMessage
        
        return false;
    }
 }
 
  //Validating the Feedback and Friend controls
  function Validate()
  {    
        if(document.getElementById("ucInterioTop_txtEmail").value=="")
        {       
            alert("Please enter Email");
            //document.getElementById("ucInterioTop_txtEmail").focus();
            return false;
        }   
            if(!IsValidEmail(document.getElementById("ucInterioTop_txtEmail").value))
            {
                alert('Enter valid Email Id and try again.');
                //document.getElementById("ucInterioTop_txtEmail").focus();
                return false;
            }
        
        return true;    
  }
  
  
    function ValidateLogin()
  {    
        if(document.getElementById("ucInterioRightLogin_txtId").value=="")
        {       
            alert("Please enter User Name");
            document.getElementById("ucInterioRightLogin_txtId").focus();
            return false;
        }   
            if(document.getElementById("ucInterioRightLogin_txtPass").value=="")
            {
                alert('Please enter Password.');
                document.getElementById("ucInterioRightLogin_txtPass").focus();
                return false;
            }
                               
        return true;    
  }
  
  
///////////////////////// Reset function for dealerlocater-meena  ///////////////////////////////////////////////////
  
      function ResetDealer()
      {
    
            document.getElementById("ucDealerLocatorRight_ddlBusiness").value="0";
            document.getElementById("ucDealerLocatorRight_ddlLevel").value="0";
            document.getElementById("ucDealerLocatorRight_ddlCountry").value="0";
            document.getElementById("ucDealerLocatorRight_ddlState").value="0";
            document.getElementById('ucDealerLocatorRight_ddlCity').value="0";
            
              return false;   
      }
      
////////////////////////////////////////////////////////////////////////////////////////////////////////////  
  
  ///validate function for dealerlocater-meena
  
      function ValidateDealer()
  {    
       
        
 
      if (document.getElementById("ucDealerLocatorRight_ddlBusiness").value=="0")
        {
	        alert("Please select Business.");
	        document.getElementById("ucDealerLocatorRight_ddlBusiness").focus();
	        return false;    		
        }
          if (document.getElementById("ucDealerLocatorRight_ddlLevel").value=="0")
        {
	        alert("Please select Levels.");
	        document.getElementById("ucDealerLocatorRight_ddlLevel").focus();
	        return false;    		
        }
          if (document.getElementById("ucDealerLocatorRight_ddlCountry").value=="0")
        {
	        alert("Please select Country.");
	        document.getElementById("ucDealerLocatorRight_ddlCountry").focus();
	        return false;    		
        }
        
           if (document.getElementById("ucDealerLocatorRight_ddlState").value=="0")
        {
	        alert("Please select State.");
	        document.getElementById("ucDealerLocatorRight_ddlState").focus();
	        return false;    		
        }
        
         if(document.getElementById('ucDealerLocatorRight_ddlCity').value=="0")
        {
	        alert("Please select City");
	        document.getElementById('ucDealerLocatorRight_ddlCity').focus();
	        return false;    		
        }
                               
        return true;    
  }
  //////////////////////////////<%=DataList1.ClientID%>
 
 function IsValid(str)
 {
 if(str=="Feedback")
    {
        if(document.getElementById("ucInterioProductsRight_txtName").value=="")
        {
            alert("Please enter Name");
            document.getElementById("ucInterioProductsRight_txtName").focus();
            return false;
        }
       else if(!CheckValid(document.getElementById('ucInterioProductsRight_txtName').value,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz "))
       {
            alert("Please Enter a Valid Name");
		    document.getElementById("ucInterioProductsRight_txtName").focus();
	         return false;       
       }
        if(document.getElementById("ucInterioProductsRight_txtEmail").value=="")
        {
            alert("Please enter Email");
            document.getElementById("ucInterioProductsRight_txtEmail").focus();
            return false;
        }
        else
        {
            if(!IsValidEmail(document.getElementById("ucInterioProductsRight_txtEmail").value))
            {
                alert('Enter valid Email Id and try again.');
                document.getElementById("ucInterioProductsRight_txtEmail").focus();
                return false;
            }
        }
	 //============================================================================
       if(document.getElementById("ucInterioProductsRight_txtPhoneNumber").value=="")
    {
        alert("Please enter phone number");
        document.getElementById("ucInterioProductsRight_txtPhoneNumber").focus();
        return false;
    }
    else if(!CheckValid(document.getElementById('ucInterioProductsRight_txtPhoneNumber').value,"0123456789"))
    {
        alert("Please enter a valid phone number");
	    document.getElementById("ucInterioProductsRight_txtPhoneNumber").focus();
        return false;       
    }

    if(document.getElementById("ucInterioProductsRight_drdlistState").value=="0")
    {
        alert("Please select state");
        document.getElementById("ucInterioProductsRight_drdlistState").focus();
        return false;
    }
    
    if(document.getElementById("ucInterioProductsRight_txtCity").value=="")
    {
        alert("Please enter city");
        document.getElementById("ucInterioProductsRight_txtCity").focus();
        return false;
    }
        //=============================================================================

        if(document.getElementById("ucInterioProductsRight_txtDescription").value=="")
        {
            alert("Please enter Description");
            document.getElementById("ucInterioProductsRight_txtDescription").focus();
            return false;
        }
        return true;        
    }
    else if(str=="Friend")
    {
    
     if(document.getElementById("ucInterioProductsRight_txtFriendEmail").value=="")
        {
            alert("Please enter Friend's Email");
            document.getElementById("ucInterioProductsRight_txtFriendEmail").focus();
            return false;
        }
        else
        {
            if(!IsValidEmail(document.getElementById("ucInterioProductsRight_txtFriendEmail").value))
            {
                alert("Please Enter valid Friend's Email");
                document.getElementById("ucInterioProductsRight_txtFriendEmail").focus();
                return false;
            }
        }
        if(document.getElementById("ucInterioProductsRight_txtYourEmail").value=="")
        {
            alert("Please enter your Email");
            document.getElementById("ucInterioProductsRight_txtYourEmail").focus();
            return false;
        }
        else
        {
            if(!IsValidEmail(document.getElementById("ucInterioProductsRight_txtYourEmail").value))
            {
                alert('Please enter valid  Email');
                document.getElementById("ucInterioProductsRight_txtYourEmail").focus();
                return false;
            }
        }
       
        if(document.getElementById("ucInterioProductsRight_txtFDescription").value=="")
        {
            alert("Please enter Message");
            document.getElementById("ucInterioProductsRight_txtFDescription").focus();
            return false;
        }
        return true;        
    }
 }
  
  
function IsValidEmail(stremail,empty)
    {
     if(stremail=='' && empty)
            return true;
    var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
    return filter.test(stremail);
    }  


function disableBottom()
    {
        document.getElementById("div1st").style.display='block';
        document.getElementById("div2nd").style.display='none';
        document.getElementById("div3rd").style.display='none';
    }
    function disableMiddle()
    {
        document.getElementById("div2nd").style.display='block';
        document.getElementById("div1st").style.display='none';
        document.getElementById("div3rd").style.display='none';
    }
    
    function disableTop()
    {
        document.getElementById("div3rd").style.display='block';
        document.getElementById("div2nd").style.display='none';
        document.getElementById("div1st").style.display='none';
    }

function showHideDivs(divId)
{ 
    var hidValue=document.getElementById('hidDivId').value;
    if(hidValue!="0" && hidValue!="")
    {
        document.getElementById(hidValue).style.display="none";
    }
    if(divId!='')
    {
        document.getElementById(divId).style.display='block';
    }
    document.getElementById('hidDivId').value=divId;
}
function openCloseDivs(divId)
{ 
    var hidValue=document.getElementById('hidDivId').value;
    var hidMode=document.getElementById('hidMode').value;
    if(hidValue!="0" && hidValue!="")
    {
        document.getElementById(hidValue).style.display="none";
    }
    if(divId!='')
    {
        if(document.getElementById(divId).style.display == 'none')
        {
            document.getElementById(divId).style.display='block';
            document.getElementById('hidDivId').value=divId;
        }
        if(hidValue == divId)
        {
            document.getElementById(divId).style.display='none';
            document.getElementById('hidDivId').value = "0";
        }
    }
}
function openCloseMainDivs(divId)
{ 
    document.getElementById('know_solid').style.display='none';
    document.getElementById('know_wood_derivatives').style.display='none';
    if(document.getElementById(divId).style.display == 'none')
    {
        document.getElementById(divId).style.display='block';
    }
    else
    {
        document.getElementById(divId).style.display='none';
    }
//    var hidValue=document.getElementById('hidDivId').value;
//    var hidMode=document.getElementById('hidMode').value;
//    if(hidValue!="0" && hidValue!="")
//    {
//        document.getElementById(hidValue).style.display="none";
//    }
//    if(divId!='')
//    {
//        if(document.getElementById(divId).style.display == 'none')
//        {
//            document.getElementById(divId).style.display='block';
//            document.getElementById('hidDivId').value=divId;
//        }
//        if(hidValue == divId)
//        {
//            document.getElementById(divId).style.display='none';
//            document.getElementById('hidDivId').value = "0";
//        }
//    }
}
function closeFriend(divId)
{     
    
    var divName="ucInterioProductsRight_"+divId;
    document.getElementById(divName).style.display="none";
    
    var divName="ucInterioAskAnExpertRight_divMessage";
    document.getElementById(divName).style.display="none";
}
function closeMessage(divId)
{     
    
    var divName="ucInterioAskAnExpertRight_"+divId;
    document.getElementById(divName).style.display="none";
}

function regthankclose(divId)
{     
    
    var divName="ucInterioRightRegistration_ucInterioTop_"+divId;
    document.getElementById(divName).style.display="none";
}



function closeFeedback(divId)
{     
    var divName="ucInterioTop_"+divId;
    document.getElementById(divName).style.display="none";
}
function validateSearch()
{     
    if(document.getElementById("ucInterioTop_txtKeyword").value=="")
    {
        alert('Please enter a keyword');
        document.getElementById("ucInterioTop_txtKeyword").focus();
        return false;
    }
    return true;
}


function validateAskExpert()
{

    //ResetControl("Msg");
    //Name
    if(document.getElementById("ucInterioAskAnExpertRight_txtName").value=="")
    {
        alert("Please enter your Name");
        document.getElementById("ucInterioAskAnExpertRight_txtName").focus();
        return false;
    }
    else if(!CheckValid(document.getElementById('ucInterioAskAnExpertRight_txtName').value,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz "))
       {
            alert("Please Enter a Valid Name");
		    document.getElementById("ucInterioAskAnExpertRight_txtName").focus();
	         return false;       
       }
       
    //Email
    if(document.getElementById("ucInterioAskAnExpertRight_txtEmail").value=="")
    {
        alert("Please enter your Email");
        document.getElementById("ucInterioAskAnExpertRight_txtEmail").focus();
        return false;
    }
    else
    {
        if(!IsValidEmail(document.getElementById("ucInterioAskAnExpertRight_txtEmail").value))
        {
            alert('Please enter valid Email');
            document.getElementById("ucInterioAskAnExpertRight_txtEmail").focus();
            return false;
        }
    }
//    if(document.getElementById("ucInterioAskAnExpertRight_txtOrganization").value=="")
//    {
//        alert("Please enter your Name");
//        document.getElementById("ucInterioAskAnExpertRight_txtOrganization").focus();
//        return false;
//    }

    if(document.getElementById("ucInterioAskAnExpertRight_txtPhone").value=="")
    {
        alert("Please enter phone number");
        document.getElementById("ucInterioAskAnExpertRight_txtPhone").focus();
        return false;
    }
    else if(!CheckValid(document.getElementById('ucInterioAskAnExpertRight_txtPhone').value,"0123456789"))
    {
        alert("Please enter a valid phone number");
	    document.getElementById("ucInterioAskAnExpertRight_txtPhone").focus();
        return false;       
    }

    if(document.getElementById("ucInterioAskAnExpertRight_drdlistState").value=="0")
    {
        alert("Please select state");
        document.getElementById("ucInterioAskAnExpertRight_drdlistState").focus();
        return false;
    }
    
    if(document.getElementById("ucInterioAskAnExpertRight_txtCity").value=="")
    {
        alert("Please enter city");
        document.getElementById("ucInterioAskAnExpertRight_txtCity").focus();
        return false;
    }
    
    if(document.getElementById("ucInterioAskAnExpertRight_txtAddress").value=="")
    {
        alert("Please enter address");
        document.getElementById("ucInterioAskAnExpertRight_txtAddress").focus();
        return false;
    }  

    if(document.getElementById("ucInterioAskAnExpertRight_txtQuery").value=="")
    {
        alert("Please enter Query");
        document.getElementById("ucInterioAskAnExpertRight_txtQuery").focus();
        return false;
    }
    
    return true; 
}


function CheckValid(chars,validchars)
{   
    var blnresult=true;
    for(var i=0;i<chars.length&&blnresult==true;i++)
    {
        var cchar=chars.charAt(i);
        if(validchars.indexOf(cchar)==-1)
        {
            blnresult=false;
        }
    }
     return blnresult;
 }

function showVideo(shodDiv1,shodDiv2)
{
    var strSwf="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"592\" height=\"430\"><param name=\"movie\" value=\"Flash/video_plyer_final.swf?filename=video.flv\"><param name=\"quality\" value=\"high\"><param name=\"scale\" value=\"exactfit\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"menu\" value=\"true\" /><embed src=\"Flash/video_plyer_final.swf?filename=video.flv\" allowfullscreen=\"true\" scale=\"exactfit\" quality=\"high\" menu=\"false\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"592\" height=\"430\"></embed></object>";
    if(document.getElementById("tdPlayVideo"))
    {
        document.getElementById("tdPlayVideo").innerHTML=strSwf;
    }
  document.getElementById(shodDiv1).style.display='block';
  document.getElementById(shodDiv2).style.display='block';  
}

function hideVideo(shodDiv1,shodDiv2)
{  
    document.getElementById(shodDiv1).style.display='none';
    document.getElementById(shodDiv2).style.display='none';
    if(document.getElementById("divFlash"))
    { 
        document.getElementById("divFlash").innerHTML="";
    }
    if(document.getElementById("tdPlayVideo"))
    {
        document.getElementById("tdPlayVideo").innerHTML="";
    }
}

function showprodlarge()
{
  document.getElementById('tran_bg_div_prod').style.display='block';
  document.getElementById('prod_inner_div1').style.display='block';  
}

function hideprodlarge()
{  
    document.getElementById('tran_bg_div_prod').style.display='none';
    document.getElementById('prod_inner_div1').style.display='none'; 
}


function printContent(id)
{
    str=document.getElementById(id).innerHTML
    newwin=window.open('','printwin','Right=100,top=100,width=400,height=400')
    newwin.document.write('<HTML>\n<HEAD>\n')
    newwin.document.write('<TITLE>Print Page</TITLE>\n')
    newwin.document.write('<script>\n')
    newwin.document.write('function chkstate(){\n')
    newwin.document.write('if(document.readyState=="complete"){\n')
    newwin.document.write('window.close()\n')
    newwin.document.write('}\n')
    newwin.document.write('else{\n')
    newwin.document.write('setTimeout("chkstate()",2000)\n')
    newwin.document.write('}\n')
    newwin.document.write('}\n')
    newwin.document.write('function print_win(){\n')
    newwin.document.write('window.print();\n')
    newwin.document.write('chkstate();\n')
    newwin.document.write('}\n')
    newwin.document.write('<\/script>\n')
    newwin.document.write('</HEAD>\n')
    newwin.document.write('<BODY onload="print_win()">\n')
    newwin.document.write(str)
    newwin.document.write('</BODY>\n')
    newwin.document.write('</HTML>\n')
    newwin.document.close()
}

function goToPrevious()
{
    var ref = document.referrer;
    var currLocation=window.location.href;
    //alert(currLocation);
    //alert(ref);
    var pathArray = ref.split( '/' );
    var pathCount=pathArray.length-1;
    var pageName = pathArray[pathCount].split( '?' );
    var pageName1=pageName[0];
    pageName1=pageName1.toLowerCase();
    if(pageName1=='login.aspx')
    {
        window.location.href="index.aspx";
    }
    else
    {
        history.back();
//        if(ref==currLocation)
//        {//alert('');
//            history.go(-2);
//        }
//        else
//        {
//            history.back();
//        }
    }

}


function showExportsVideo()
{
    document.getElementById('feedback_div1').style.display='block';
    document.getElementById('tran_bg_div7').style.display='block';
    //document.getElementById("divFlash").innerHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='100%' height='100%'><param name='movie' value='../GodrejInterio/Flash/videoPlayer_godrej.swf' /><param name='quality' value='high' /><param name ='scale' value='exactFit'/><param name='allowFullScreen' value='true' /><embed src='../GodrejInterio/Flash/videoPlayer_godrej.swf' quality='high' scale='exactFit' allowFullScreen='true' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='100%' height='100%'></embed></object>";
    document.getElementById("divFlash").innerHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='592' height='430'><param name='movie' value='Flash/video_plyer_final.swf?filename=video.flv'><param name='quality' value='high'><param name='scale' value='exactfit' /><param name='allowFullScreen' value='true' /><param name='menu' value='true' /><embed src='Flash/video_plyer_final.swf?filename=video.flv' allowfullscreen='true' scale='exactfit' quality='high' menu='false' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='592' height='430'></embed></object>";
}


//function getURL(uri) 
//{
//uri.dir = location.href.substring(0, location.href.lastIndexOf('\/'));
//uri.dom = uri.dir; if (uri.dom.substr(0,7) == 'http:\/\/') uri.dom = uri.dom.substr(7);
//uri.path = ''; var pos = uri.dom.indexOf('\/'); if (pos > -1) {uri.path = uri.dom.substr(pos+1); uri.dom = uri.dom.substr(0,pos);}
//uri.page = location.href.substring(uri.dir.length+1, location.href.length+1);
//pos = uri.page.indexOf('?');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
//pos = uri.page.indexOf('#');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
//uri.ext = ''; pos = uri.page.indexOf('.');if (pos > -1) {uri.ext =uri.page.substring(pos+1); uri.page = uri.page.substr(0,pos);}
//uri.file = uri.page;
//if (uri.ext != '') uri.file += '.' + uri.ext;
//if (uri.file == '') uri.page = 'index';
//uri.args = location.search.substr(1).split("?");
//return uri;
//}

//var uri = new Object();
//getURL(uri);
                  
function openwin()
{
   window.open('newsletteremail.aspx','NewsLetters','height=244,width=332,resizeble=0,scrollbars=0,status=0,screenX=0,screenY=0,top=250,left=300');
//   return true;
}

function ValidateCheck()
{
    if(document.getElementById("ucInterioNewsletterLeft_txtEmail").value=="")
    {
        alert("Please enter your Email");
        document.getElementById("ucInterioNewsletterLeft_txtEmail").focus();
        return false;
    }
    else
    {
        if(!IsValidEmail(document.getElementById("ucInterioNewsletterLeft_txtEmail").value))
        {
            alert('Please enter valid Email');
            document.getElementById("ucInterioNewsletterLeft_txtEmail").focus();
            return false;
        }
    }
    
    


}
 function hideSubMenu(Id)
    {
        var divId="div"+Id;
        document.getElementById(divId).style.display="none";
    }
function showSubMenu(Id)
    {//alert('');
        var divId="div"+Id;
        var prevId=document.getElementById("ucInterioTop_hidPrevMenu").value;
        if(prevId!="0")
        {
            document.getElementById(prevId).style.display="none";
        }
        document.getElementById(divId).style.display="block";
        document.getElementById("ucInterioTop_hidPrevMenu").value=divId;
    }

function setClass(Id,cssClass)
    {
        var liId=document.getElementById("ucInterioTop_hidMenuId").value;
        //alert(Id.id);
        if(liId==Id.id)
            document.getElementById(Id.id).style.cursor="default";
        else
            document.getElementById(Id.id).style.cursor="pointer";

        //Id.className=cssClass;
        
    }
    function resetClass(Id,cssClass)
    {
//        var liId="li"+Id;
//        document.getElementById(liId).style.className="";
        Id.className=cssClass;
        var liId=document.getElementById("ucInterioTop_hidMenuId").value;
        if(liId!='0')
        document.getElementById(liId).className="toplink_hover";
    }
