﻿function hh(){
var b = document.getElementById("bf");
		b.style.display="none";
	
}

function hg(){

var n = document.getElementById("Inner_Content");
var m = document.getElementById("Left_Navigation");

m.style.height=1200+'px';
n.style.height="100%";

if(n.style.height<m.style.height )
{

n.style.height=m.style.height;
 

}
else if(n.style.height>m.style.height )
{

m.style.height=n.style.height;
m.style.overflowY="hidden";
}

}
window.onload=hg;



//
var x=1;
function ss(s){	

var g = document.getElementById(s);
if(x==1){
g.style.height="";
g.style.overflow="auto";
x=0;
}
else{
g.style.height="25px";
g.style.overflow="hidden";
x=1;
}
}
//

//javascript for QA.asp
function expand_(dx)
{ var d = document.getElementById(dx).style;
	d.height="auto";
	d.overflowY="auto";
}
function cls_(ds)
{var d = document.getElementById(ds).style;
	d.height=50+'px';
	d.overflowY="hidden";
}
function ask(){

document.getElementById("ask").style.display="block";
}
function cls(){
document.getElementById("ask").style.display="none";

}
//end QA  here 

//javascript for right.asp page
var xmlHttp,cid;
function funReloadState()
{
	
	if ((document.frmopinion.txt_name.value=="")||(document.frmopinion.txt_name.value=="Enter Your Name"))
{ 	document.frmopinion.txt_name.focus();
	document.frmopinion.txt_name.value="Enter Your Name";
	return false;}
if ((document.frmopinion.txt_mail.value=="") ||(document.frmopinion.txt_mail.value=="E-mail ID"))
{	document.frmopinion.txt_mail.focus();
	document.frmopinion.txt_mail.value="Enter Your Email ID";
	return false;}
if (document.frmopinion.txt_mail!="")
		{var str=document.frmopinion.txt_mail.value
			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
			if (filter.test(str))
			{}
			else{
document.frmopinion.txt_mail.focus();
document.frmopinion.txt_mail.value="Enter Your Email ID";
return false;}}
if ((document.frmopinion.txtcomments.value=="")||(document.frmopinion.txtcomments.value=="Your Comments"))
{	document.frmopinion.txtcomments.focus();
	document.frmopinion.txtcomments.value="Enter Your Comments";
	return false;}
if ((document.frmopinion.strCAPTCHA.value=="")||(document.frmopinion.strCAPTCHA.value=="Code"))
{	document.frmopinion.strCAPTCHA.focus();
	document.frmopinion.strCAPTCHA.value="Enter Image code";
	return false;}
else
{
		
		/*ajax coding here */
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		{
			alert ("Browser does not support HTTP Request")
			return false;
		} 
		var url="submitopinion.asp?n="+document.frmopinion.txt_name.value+"&e="+document.frmopinion.txt_mail.value+"&o="+document.frmopinion.txtcomments.value+"&c="+document.frmopinion.strCAPTCHA.value
		xmlHttp.onreadystatechange=stateChanged 
		xmlHttp.open("post",url,true)
		xmlHttp.send(null)
}	
}

function stateChanged() 
	{ 
		if (xmlHttp.readyState==1)
		{
			document.getElementById("txtHint2").innerHTML="Sending .........<img src='images/loading.gif'>";
		} 
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{ 
		document.getElementById("txtHint2").innerHTML=xmlHttp.responseText;
		}
	} 	

function GetXmlHttpObject()
	{ var objXMLHttp=null
	if(window.XMLHttpRequest){
	   objXMLHttp = new XMLHttpRequest()}
    	 else if (window.ActiveXObject){
    	      objXMLHttp = new ActiveXObject("Microsoft.XMLHttp")}
    	 return objXMLHttp
	}	

function fnoptclear(x)
{document.getElementById(x).innerText="";}

function checkLogin()
	{ 
		if (document.frmLogin1.EUName.value=="User Name" || document.frmLogin1.EUName.value=="")
		{
		document.frmLogin1.EUName.select();
		document.frmLogin1.EUName.value="Please Enter Name";
		return false;
		} 
		if (document.frmLogin1.EUPwd.value=="Password" || document.frmLogin1.EUPwd.value=="")
		{
		document.frmLogin1.EUPwd.select();
	    document.frmLogin1.EUPwd.value="Password";
		return false;
		} 
		
	}
	
function fp(){
var d = document.getElementById("fp");
var e = document.getElementById("bg");
var n = document.form1;
d.style.display="block";
e.style.display="block";
n.txtuid.value="Enter your Email Id";
n.txtuid.select();
}

function cl(){
var d = document.getElementById("fp");
var e = document.getElementById("bg");
d.style.display="none";
e.style.display="none";
}
//end here 




    

   

