// Script for copy right year
var copyrightyear = "&copy; 2007,"
//script for pop up
function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,status=yes,location=0,statusbar=0,menubar=0,resizable=yes,width=500,height=600,left = 262,top = 134');");

}
//script for mouseover
        function showLayer(layerName, shadowLayerName)
        {
            if (document.getElementById) // Netscape 6 and IE 5+
            {
                var targetElement = document.getElementById(layerName);
                var shadowElement = document.getElementById(shadowLayerName);
                targetElement.style.top = shadowElement.style.top;
                targetElement.style.visibility = 'visible';
            }
        }


        function hideLayer(layerName)
        {
            if (document.getElementById) 
            {
                var targetElement = document.getElementById(layerName);
                targetElement.style.visibility = 'hidden';
            }
        }
/*script for toogle div*/

function showLayer_new(layerName, shadowLayerName)
        {
            if (document.getElementById) // Netscape 6 and IE 5+
            {
                var targetElement = document.getElementById(layerName);
                var shadowElement = document.getElementById(shadowLayerName);
                targetElement.style.top = shadowElement.style.top;
                targetElement.style.visibility = 'visible';
            }
        }


        function hideLayer_new(layerName)
        {
            if (document.getElementById) 
            {
                var targetElement = document.getElementById(layerName);
                targetElement.style.visibility = 'hidden';
            }
        }
/**/
divElement = new Array(4); 
divElement[0] = "oem";
divElement[1] = "mengine";
divElement[2] = "testing";
divElement[3] = "database";
activeImg = new Array(4); 
activeImg[0] = "/manageengine/images/mengine-selected-tab.gif";
activeImg[1] = "/manageengine/images/mengine-selected-tab.gif";
activeImg[2] = "/manageengine/images/mengine-selected-tab.gif";
activeImg[3] = "/manageengine/images/mengine-selected-tab.gif";
inActiveImg = new Array(4); 
inActiveImg[0] = "/manageengine/images/prod-deselected.gif";
inActiveImg[1] = "/manageengine/images/prod-deselected.gif";
inActiveImg[2] = "/manageengine/images/prod-deselected.gif";
inActiveImg[3] = "/manageengine/images/prod-deselected.gif";

function toggleDiv(val){
	for(var i=0; i<divElement.length; i++){
		if(val == divElement[i]){
			document.getElementById(divElement[i]).style.display = "block";
			//document.getElementById(divElement[i]+"_td").background = activeImg[i];
			document.getElementById(divElement[i]+"_td").style.backgroundImage = "url(\""+activeImg[i]+"\")"; 
			document.getElementById(divElement[i]+"_a").className= "activetab";
		}
		else{
			document.getElementById(divElement[i]).style.display = "none";
//			document.getElementById(divElement[i]+"_td").background = inActiveImg[i];
			document.getElementById(divElement[i]+"_td").style.backgroundImage = "url(\""+inActiveImg[i]+"\")"; 
			document.getElementById(divElement[i]+"_a").className= "deactivetab";
		}
	}
}
/*script for toogle div*/

/*script for onmouse over*/


/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<div align="left"><a href="http://www.adventnet.it/products/ad-manager/index.html" class="mouse">ADManager Plus</a></div>'
menu1[1]='<div align="left"><a href="http://manageengine.adventnet.com/products/self-service-password/index.html" target="_blank" class="mouse">ADselfService Plus</a></div>'
menu1[2]='<div align="left"><a href="http://www.adventnet.it/products/applications_manager/index.html" class="mouse">Applications Manager</a></div>'
menu1[3]='<div align="left"><a href="http://manageengine.adventnet.com/products/asset-explorer/index.html" target="_blank" class="mouse">Asset Explorer</a></div>'
menu1[4]='<div align="left"><a href="http://www.adventnet.it/products/desktop-central/index.html" class="mouse">Desktop Central</a></div>'
menu1[5]='<div align="left"><a href="http://www.adventnet.it/products/device-expert/index.html" class="mouse">Device Expert</a></div>'
menu1[6]='<div align="left"><a href="http://manageengine.adventnet.com/products/eventlog/index.html" target="_blank" class="mouse">EventLog Analyzer</a></div>'
menu1[7]='<div align="left"><a href="http://manageengine.adventnet.com/products/facilities-desk/index.html" target="_blank" class="mouse">FacilitiesDesk</a></div>'
menu1[8]='<div align="left"><a href="http://www.adventnet.it/products/firewall/index.html" class="mouse">Firewall Analyzer</a></div>'
menu1[9]='<div align="left"><a href="http://www.adventnet.it/products/netflow/index.html" class="mouse">NetFlow Analyzer</a></div>'
menu1[10]='<div align="left"><a href="http://www.securecentral.com/products/patchquest/index.html" target="_blank" class="mouse">PatchQuest</a></div>'
menu1[11]='<div align="left"><a href="http://www.adventnet.it/products/opmanager/index.html" class="mouse">OpManager</a></div>'
menu1[12]='<div align="left"><a href="http://manageengine.adventnet.com/products/msp-center/index.html" target="_blank" class="mouse">MSP Center Plus</a></div>'
menu1[13]='<div align="left"><a href="http://manageengine.adventnet.com/products/opstor/index.html" target="_blank" class="mouse">OpStor</a></div>'
menu1[14]='<div align="left"><a href="http://manageengine.adventnet.com/products/oputils/index.html" target="_blank" class="mouse">OpUtils</a></div>'
menu1[15]='<div align="left"><a href="http://manageengine.adventnet.com/products/passwordmanagerpro/index.html" target="_blank" class="mouse">PasswordManager Pro</a></div>'
menu1[16]='<div align="left"><a href="http://manageengine.adventnet.com/products/security-manager/index.html" target="_blank" class="mouse">Security Manager Plus</a></div>'
menu1[17]='<div align="left"><a href="http://www.adventnet.it/products/service-desk/index.html" class="mouse">ServiceDesk Plus</a></div>'
menu1[18]='<div align="left"><a href="http://manageengine.adventnet.com/products/support-center/index.html" target="_blank" class="mouse">SupportCenter Plus</a></div>'
menu1[19]='<div align="left"><a href="http://manageengine.adventnet.com/products/vqmanager/index.html" target="_blank" class="mouse">VQ Manager</a></div>'
menu1[20]='<div align="left"><a href="http://manageengine.adventnet.com/products/wifi-manager/index.html"  target="_blank" class="mouse">WiFi Manager</a></div>'

var menu5=new Array()
menu5[0]='<div align="left"><a href="http://www.adventnet.it/products/ad-manager/index.html" class="mouse">ADManager Plus</a></div>'
menu5[1]='<div align="left"><a href="http://manageengine.adventnet.com/products/self-service-password/index.html" target="_blank" class="mouse">ADselfService Plus</a></div>'
menu5[2]='<div align="left"><a href="http://www.adventnet.it/products/applications_manager/index.html" class="mouse">Applications Manager</a></div>'
menu5[3]='<div align="left"><a href="http://manageengine.adventnet.com/products/asset-explorer/index.html" target="_blank" class="mouse">Asset Explorer</a></div>'
menu5[4]='<div align="left"><a href="http://www.adventnet.it/products/desktop-central/index.html" class="mouse">Desktop Central</a></div>'
menu5[5]='<div align="left"><a href="http://www.adventnet.it/products/device-expert/index.html" class="mouse">Device Expert</a></div>'
menu5[6]='<div align="left"><a href="http://manageengine.adventnet.com/products/eventlog/index.html" target="_blank" class="mouse">EventLog Analyzer</a></div>'
menu5[7]='<div align="left"><a href="http://manageengine.adventnet.com/products/facilities-desk/index.html" target="_blank" class="mouse">FacilitiesDesk</a></div>'
menu5[8]='<div align="left"><a href="http://www.adventnet.it/products/firewall/index.html" class="mouse">Firewall Analyzer</a></div>'
menu5[9]='<div align="left"><a href="http://www.adventnet.it/products/netflow/index.html"" class="mouse">NetFlow Analyzer</a></div>'
menu5[10]='<div align="left"><a href="http://www.securecentral.com/products/patchquest/index.html" target="_blank" class="mouse">PatchQuest</a></div>'
menu5[11]='<div align="left"><a href="http://www.adventnet.it/products/opmanager/index.html" class="mouse">OpManager</a></div>'
menu5[12]='<div align="left"><a href="http://manageengine.adventnet.com/products/msp-center/index.html" target="_blank" class="mouse">MSP Center Plus</a></div>'
menu5[13]='<div align="left"><a href="http://manageengine.adventnet.com/products/opstor/index.html" target="_blank" class="mouse">OpStor</a></div>'
menu5[14]='<div align="left"><a href="http://manageengine.adventnet.com/products/oputils/index.html" target="_blank" class="mouse">OpUtils</a></div>'
menu5[15]='<div align="left"><a href="http://manageengine.adventnet.com/products/passwordmanagerpro/index.html" target="_blank" class="mouse">PasswordManager Pro</a></div>'
menu5[16]='<div align="left"><a href="http://manageengine.adventnet.com/products/security-manager/index.html" target="_blank" class="mouse">Security Manager Plus</a></div>'
menu5[17]='<div align="left"><a href="http://www.adventnet.it/products/service-desk/index.html" class="mouse">ServiceDesk Plus</a></div>'
menu5[18]='<div align="left"><a href="http://manageengine.adventnet.com/products/support-center/index.html" target="_blank" class="mouse">SupportCenter Plus</a></div>'
menu5[19]='<div align="left"><a href="http://manageengine.adventnet.com/products/vqmanager/index.html" target="_blank" class="mouse">VQ Manager</a></div>'
menu5[20]='<div align="left"><a href="http://manageengine.adventnet.com/products/wifi-manager/index.html"  target="_blank" class="mouse">WiFi Manager</a></div>'

var menu6=new Array()
menu6[0]='<div align="left"><a href="http://www.adventnet.it/products/ad-manager/index.html" class="mouse">ADManager Plus</a></div>'
menu6[1]='<div align="left"><a href="http://manageengine.adventnet.com/products/self-service-password/index.html" target="_blank" class="mouse">ADselfService Plus</a></div>'
menu6[2]='<div align="left"><a href="http://www.adventnet.it/products/applications_manager/index.html" class="mouse">Applications Manager</a></div>'
menu6[3]='<div align="left"><a href="http://manageengine.adventnet.com/products/asset-explorer/index.html" target="_blank" class="mouse">Asset Explorer</a></div>'
menu6[4]='<div align="left"><a href="http://www.adventnet.it/products/desktop-central/index.html" class="mouse">Desktop Central</a></div>'
menu6[5]='<div align="left"><a href="http://www.adventnet.it/products/device-expert/index.html" class="mouse">Device Expert</a></div>'
menu6[6]='<div align="left"><a href="http://manageengine.adventnet.com/products/eventlog/index.html" target="_blank" class="mouse">EventLog Analyzer</a></div>'
menu6[7]='<div align="left"><a href="http://manageengine.adventnet.com/products/facilities-desk/index.html" target="_blank" class="mouse">FacilitiesDesk</a></div>'
menu6[8]='<div align="left"><a href="http://www.adventnet.it/products/firewall/index.html" class="mouse">Firewall Analyzer</a></div>'
menu6[9]='<div align="left"><a href="http://www.adventnet.it/products/netflow/index.html"" class="mouse">NetFlow Analyzer</a></div>'
menu6[10]='<div align="left"><a href="http://www.securecentral.com/products/patchquest/index.html" target="_blank" class="mouse">PatchQuest</a></div>'
menu6[11]='<div align="left"><a href="http://www.adventnet.it/products/opmanager/index.html" class="mouse">OpManager</a></div>'
menu6[12]='<div align="left"><a href="http://manageengine.adventnet.com/products/msp-center/index.html" target="_blank" class="mouse">MSP Center Plus</a></div>'
menu6[13]='<div align="left"><a href="http://manageengine.adventnet.com/products/opstor/index.html" target="_blank" class="mouse">OpStor</a></div>'
menu6[14]='<div align="left"><a href="http://manageengine.adventnet.com/products/oputils/index.html" target="_blank" class="mouse">OpUtils</a></div>'
menu6[15]='<div align="left"><a href="http://manageengine.adventnet.com/products/passwordmanagerpro/index.html" target="_blank" class="mouse">PasswordManager Pro</a></div>'
menu6[16]='<div align="left"><a href="http://manageengine.adventnet.com/products/security-manager/index.html" target="_blank" class="mouse">Security Manager Plus</a></div>'
menu6[17]='<div align="left"><a href="http://www.adventnet.it/products/service-desk/index.html" class="mouse">ServiceDesk Plus</a></div>'
menu6[18]='<div align="left"><a href="http://manageengine.adventnet.com/products/support-center/index.html" target="_blank" class="mouse">SupportCenter Plus</a></div>'
menu6[19]='<div align="left"><a href="http://manageengine.adventnet.com/products/vqmanager/index.html" target="_blank" class="mouse">VQ Manager</a></div>'
menu6[20]='<div align="left"><a href="http://manageengine.adventnet.com/products/wifi-manager/index.html"  target="_blank" class="mouse">WiFi Manager</a></div>'



var menu3=new Array()
menu3[0]='<div align="left"><a href="http://www.adventnet.it/products/ad-manager/index.html"   class="mouse">ADManager Plus</a></div>'
menu3[1]='<div align="left"><a href="http://manageengine.adventnet.com/products/self-service-password/index.html" target="_blank" class="mouse">ADselfService Plus</a></div>'
menu3[2]='<div align="left"><a href="http://www.adventnet.it/products/applications_manager/index.html" class="mouse">Applications Manager</a></div>'
menu3[3]='<div align="left"><a href="http://manageengine.adventnet.com/products/asset-explorer/index.html" target="_blank" class="mouse">Asset Explorer</a></div>'
menu3[4]='<div align="left"><a href="http://www.adventnet.it/products/desktop-central/index.html" class="mouse">Desktop Central</a></div>'
menu3[5]='<div align="left"><a href="http://www.adventnet.it/products/device-expert/index.html" class="mouse">Device Expert</a></div>'
menu3[6]='<div align="left"><a href="http://manageengine.adventnet.com/products/eventlog/index.html" target="_blank" class="mouse">EventLog Analyzer</a></div>'
menu3[7]='<div align="left"><a href="http://manageengine.adventnet.com/products/facilities-desk/index.html" target="_blank" class="mouse">FacilitiesDesk</a></div>'
menu3[8]='<div align="left"><a href="http://www.adventnet.it/products/firewall/index.html" class="mouse">Firewall Analyzer</a></div>'
menu3[9]='<div align="left"><a href="http://www.adventnet.it/products/netflow/index.html"" class="mouse">NetFlow Analyzer</a></div>'
menu3[10]='<div align="left"><a href="http://www.securecentral.com/products/patchquest/index.html" target="_blank" class="mouse">PatchQuest</a></div>'
menu3[11]='<div align="left"><a href="http://www.adventnet.it/products/opmanager/index.html" class="mouse">OpManager</a></div>'
menu3[12]='<div align="left"><a href="http://manageengine.adventnet.com/products/msp-center/index.html" target="_blank" class="mouse">MSP Center Plus</a></div>'
menu3[13]='<div align="left"><a href="http://manageengine.adventnet.com/products/opstor/index.html" target="_blank"" class="mouse">OpStor</a></div>'
menu3[14]='<div align="left"><a href="http://manageengine.adventnet.com/products/oputils/index.html" target="_blank" class="mouse">OpUtils</a></div>'
menu3[15]='<div align="left"><a href="http://manageengine.adventnet.com/products/passwordmanagerpro/index.html" target="_blank" class="mouse">PasswordManager Pro</a></div>'
menu3[16]='<div align="left"><a href="http://manageengine.adventnet.com/products/security-manager/index.html" target="_blank" class="mouse">Security Manager Plus</a></div>'
menu3[17]='<div align="left"><a href="http://www.adventnet.it/products/service-desk/index.html" class="mouse">ServiceDesk Plus</a></div>'
menu3[18]='<div align="left"><a href="http://manageengine.adventnet.com/products/support-center/index.html" target="_blank" class="mouse">SupportCenter Plus</a></div>'
menu3[19]='<div align="left"><a href="http://manageengine.adventnet.com/products/vqmanager/index.html" target="_blank" class="mouse">VQ Manager</a></div>'
menu3[20]='<div align="left"><a href="http://manageengine.adventnet.com/products/wifi-manager/index.html"  target="_blank" class="mouse">WiFi Manager</a></div>'

var menu4=new Array()
menu4[0]='<div align="left"><a href="http://www.adventnet.it/products/ad-manager/index.html"  class="mouse">ADManager Plus</a></div>'
menu4[1]='<div align="left"><a href="http://manageengine.adventnet.com/products/self-service-password/index.html" target="_blank" class="mouse">ADselfService Plus</a></div>'
menu4[2]='<div align="left"><a href="http://www.adventnet.it/products/applications_manager/index.html" class="mouse">Applications Manager</a></div>'
menu4[3]='<div align="left"><a href="http://manageengine.adventnet.com/products/asset-explorer/index.html" target="_blank" class="mouse">Asset Explorer</a></div>'
menu4[4]='<div align="left"><a href="http://www.adventnet.it/products/desktop-central/index.html"  class="mouse">Desktop Central</a></div>'
menu4[5]='<div align="left"><a href="http://www.adventnet.it/products/device-expert/index.html" class="mouse">Device Expert</a></div>'
menu4[6]='<div align="left"><a href="http://manageengine.adventnet.com/products/eventlog/index.html" target="_blank" class="mouse">EventLog Analyzer</a></div>'
menu4[7]='<div align="left"><a href="http://manageengine.adventnet.com/products/facilities-desk/index.html" target="_blank" class="mouse">FacilitiesDesk</a></div>'
menu4[8]='<div align="left"><a href="http://www.adventnet.it/products/firewall/index.html" class="mouse">Firewall Analyzer</a></div>'
menu4[9]='<div align="left"><a href="http://www.adventnet.it/products/netflow/index.html" class="mouse">NetFlow Analyzer</a></div>'
menu4[10]='<div align="left"><a href="http://www.securecentral.com/products/patchquest/index.html" target="_blank" class="mouse">PatchQuest</a></div>'
menu4[11]='<div align="left"><a href="http://www.adventnet.it/products/opmanager/index.html" class="mouse">OpManager</a></div>'
menu4[12]='<div align="left"><a href="http://manageengine.adventnet.com/products/msp-center/index.html" target="_blank" class="mouse">MSP Center Plus</a></div>'
menu4[13]='<div align="left"><a href="http://manageengine.adventnet.com/products/opstor/index.html" target="_blank" class="mouse">OpStor</a></div>'
menu4[14]='<div align="left"><a href="http://manageengine.adventnet.com/products/oputils/index.html" target="_blank" class="mouse">OpUtils</a></div>'
menu4[15]='<div align="left"><a href="http://manageengine.adventnet.com/products/passwordmanagerpro/index.html" target="_blank" class="mouse">PasswordManager Pro</a></div>'
menu4[16]='<div align="left"><a href="http://manageengine.adventnet.com/products/security-manager/index.html" target="_blank" class="mouse">Security Manager Plus</a></div>'
menu4[17]='<div align="left"><a href="http://www.adventnet.it/products/service-desk/index.html" class="mouse">ServiceDesk Plus</a></div>'
menu4[18]='<div align="left"><a href="http://manageengine.adventnet.com/products/support-center/index.html" target="_blank" class="mouse">SupportCenter Plus</a></div>'
menu4[19]='<div align="left"><a href="http://manageengine.adventnet.com/products/vqmanager/index.html" target="_blank" class="mouse">VQ Manager</a></div>'
menu4[20]='<div align="left"><a href="http://manageengine.adventnet.com/products/wifi-manager/index.html"  target="_blank" class="mouse">WiFi Manager</a></div>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://www.adventnet.com/">AdventNet</a>'
menu2[1]='<a href="http://www.adventnet.com/">AdventNet</a>'
menu2[2]='<a href="http://www.adventnet.com/">AdventNet</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#FFFFFF'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

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 showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

/*script for onmouse over*/



/* form confirmation */

function WinExec(url,name,x,y,z) 
{
	var posX = (screen.width/2)-(x/2);
	var posY = (screen.height/2)-(y/2);
	var winPref = "width=" + x + ",height=" + y
		+ ",innerWidth=" + x + ",innerHeight=" + y
		+ ",left=" + posX + ",top=" + posY
		+ ",screenX=" + posX + ",screenY=" + posY
		+ ",toolbar=" + z + ",location=0,directories=0,status=" + z
		+ ",menubar=" + z + ",scrollbars=1,resizable=0,width=" + x
		+ ",height=" + y;
	var remoteWin = null;     
	remoteWin = window.open(url,name,winPref);
	if (window.focus) 
	{         
		remoteWin.focus();     
	} 
}   
//
	function chkValid(telno)
	{
		var stripped = telno.replace(/[\(\)\.\-\ ]/g, '');
		if (isNaN(parseInt(stripped))) {
		   return false;
		}
		return true;
	}
		function deleteblanks(entry)
		{
			var len = entry.length ;
			var foundBlank = 1;
			while(foundBlank == 1 && len > 0)
			{
				var indx = entry.indexOf(" ");
				if(indx == -1) { foundBlank = 0 ;}
				else
				{
					entry = entry.substring(0,indx) + entry.substring(indx+1,len);
				}
				len = entry.length;
			}
			return entry;
		}
		function tl1validate()
		{
			if (deleteblanks(document.ProductSubmissionForm.userName.value) == "")
			{
				alert("Please enter your name");
				document.ProductSubmissionForm.userName.focus();
				return false;
			}
			if (deleteblanks(document.ProductSubmissionForm.emailID.value) == "")
			{
				alert("Please enter your Email Id");
				document.ProductSubmissionForm.emailID.focus();
				return false;
			}
			if (document.ProductSubmissionForm.emailID.value.indexOf('@') == -1)
			{
				alert("Invalid email Address");
				document.ProductSubmissionForm.emailID.focus();
				return false;
			}
			 if (deleteblanks(document.ProductSubmissionForm.companyName.value) == "")
			{
				alert("Please enter Company or Organization name");
				document.ProductSubmissionForm.companyName.focus();
				return false;
			}	
			 if (deleteblanks(document.ProductSubmissionForm.datetime.value) == "")
			{
				alert("Please enter Date & Time for Demo");
				document.ProductSubmissionForm.datetime.focus();
				return false;
			}	
			if (deleteblanks(document.ProductSubmissionForm.tel.value) == "")
			{
				alert("Please enter your Telephone No");
				document.ProductSubmissionForm.tel.focus();
				return false;
			}
				
			if (!chkValid(document.ProductSubmissionForm.tel.value))
			{
				alert("Invalid Telephone No");
				document.ProductSubmissionForm.tel.select();
				return false;
			}
 		   	
		}		

  
  
  /* form confirmation script */
