﻿// JScript File

   
 var Footer=
'<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" >'+
'        <tr>'+
'          <td  height="120"  align="center" valign="middle" style="font-size:10px; background-color:#333; color:#ccc">'+
'                   <strong>'+lblDisclaimer+':</strong>'+
'                           '+lblDisclaimerData+''+
'                <br/>    Copyright © 2008 MPOnline Ltd. , JV between '+
'                           <a href="http://www.mpsedc.com" target="_blank" class="ftrLnk"> MPSEDC of GoMP</a>'+
'                            &'+
'                           <a href="http://www.tcs.com" target="_blank" class="ftrLnk">TATA CONSULTANCY SERVICES </a>'+
'                           <br/>'+
'                          '+lblAllRightsReserved+'.'+ 
'                    <a href="/Demo/Content/feedback/Feed_back.aspx?langid="'+langid+'" class="ftrLnk">'+lblFeedback+
'                   '+'|'+
'                   <a href="#" class="ftrLnk"> Contact us </a> |' +
'                   <a href="/Demo/Content/Terms of Service.htm" class="ftrLnk">'+ lblTermsOfService +'.</a>' +
'                   Site Best Viewed in IE7.0+ at Resolution 1024 X 768.'+
'           </td>'+
'        </tr>'+
'      </table>';
//alert(Footer);
document.write(Footer);
//var h= screen.height;
var w=screen.Width;



try
{
 var MyForm=document.forms[0];
               
               if(MyForm)
               {
                  
                   if(MyForm.className!="Ignore")
                   {
                        MyForm.style.width=964;
                        MyForm.style.margin=(w-964-22)/2;
                        MyForm.style.marginTop=10;
                        MyForm.style.marginBottom=10;
                        MyForm.className="Container";
                     
                   }
                   
                } 
 
 
}
catch(err)
{

}

try
{
    
   
       var   Elem= GEI("Msg")?GEI("Msg"):(GEI("lblMsg")?GEI("lblMsg"):GEI("lblException")) ;
       
       
        if(Elem!=null)
	    {
	           
        	       WriteMessage(Elem.innerHTML);
	               Elem.style.display="none";
	    }
	       
	   
            

}   
 catch(err)
{
    alert(err.message);

}    


function WriteMessage(Content)
{

    if(Content!="")
        {
                  var w= screen.availWidth;
                  var h= screen.availHeight;
                  var OK="<a href='javascript:void(0);' onclick='javascript:try{GEI(\"TransScreen\").style.display=\"none\";GEI(\"divMsg\").style.display=\"none\";var   Elem= GEI(\"Msg\")?GEI(\"Msg\"):(GEI(\"lblMsg\")?GEI(\"lblMsg\"):GEI(\"lblException\"));Elem.style.display=\"none\";}catch(err){};'> OK </a>";
                  
                  var  Content= "<div id='TransScreen'  style='z-index:500;background-color:#ccc;position:absolute;top:0px;left:0px;width:"+w+"px;height:"+h+"px;opacity: 0.3;filter:alpha(opacity=30);'></div>"+
	                                                "<div id='divMsg' style='top:"+((h)/2)+"px;left:"+((w-350)/2)+"px;position:absolute;width:350px;z-index:10001'>"+
	                                                   "<table align=center style='width:90%;background-color:white; border:solid 2px #000;'>"+
	                                                        "<tr><td style='color:white;background-color:black; text-align:center; font-size:14px;'>"+
	                                                        "<b>"+"Message"+"</b>"+
	                                                        "</td></tr>"+
	                                                        "<tr><td style='color:red; text-align:center;'>"+
	                                                            "<b>"+
    	                                                              Content+
                                                                 "</b>"+
	                                                        "</td></tr>"+
	                                                        "<tr><td align='center'>"+
                                                                    OK	                                                           
                                                            "</td></tr>"+
                	                                        
	                                                     "</table>"+
	                                                 "</div>";
                	                      
	                               document.write(Content); 
                	               
        }

}
               
 function GEI(X){ return document.getElementById(X);}
         









