function switcharticles(no) { for(i=1;i<=6;i++) { var th =document.getElementById("tabhead"+i).style; if(no==i) { document.getElementById("spotdescdata"+i).style.display="inline"; th.backgroundImage = 'url(/images/nav_focus'+i+'.gif)'; th.borderRightWidth = "0px"; document.getElementById("toptitle"+i).style.display="inline"; document.getElementById("td"+i).style.border="1"; } else { document.getElementById("spotdescdata"+i).style.display="none"; document.getElementById("toptitle"+i).style.display="none"; document.getElementById("td"+i).style.border="0"; th.backgroundImage = 'url(/images/bg_spotlightnav.jpg)'; th.borderRightWidth = "1px"; } } } function selectRandomArticle() { var rnd_no = Math.round((6)*Math.random()); if (rnd_no == 0) { rnd_no = 1; } switcharticles(rnd_no); } function cleantext() { if(document.forms['subs'].email.value=="Enter your Email") { document.forms['subs'].email.value=""; } } function callsubscription(e,a) { var subid=""; for(i=0;i < a.length;i++) { if(a[i].checked==true) { subid+=a[i].value +","; } } subid=subid.substring(0,subid.length-1); var url="/nasscom/templates/ajaxsubscription.aspx?subid=" + subid +"&email="+ e; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } req.onreadystatechange = processRequestsubs; req.open("GET", url, true); req.send(null); } function processRequestsubs() { if (req.readyState == 4) { if (req.status == 200) { parseMessagessubs(); } } } function parseMessagessubs() { response = req.responseXML.documentElement; usr=response.getElementsByTagName('status')[0].getAttribute("user"); //if(usr=="existing") //{ // window.location.href="/"; //} itemDescription = response.getElementsByTagName('status')[0].getAttribute("msg"); document.getElementById('subsmsg').innerHTML=itemDescription; } function hidebox() { var l = document.getElementById("homeeventbox").style.display; document.getElementById("homeeventbox").style.display = l == "none" ? "block" : "none"; document.getElementById("homesubscriptionbox").style.display = l != "none" ? "block" : "none"; } function hideEventBox() { document.getElementById("homeeventbox").style.display = "block"; document.getElementById("homesubscriptionbox").style.display = "none"; } function hideSubscriptionBox() { document.getElementById("homeeventbox").style.display = "none"; document.getElementById("homesubscriptionbox").style.display = "block"; } function loginproc(ut,uid,pwd) { //return false; if(ut=="0") { alert("Please select the User Type"); return; } if(uid=="") { alert("Please enter the User Name"); return; } if(pwd=="") { alert("Please enter the Password"); return; } var url="/nasscom/templates/AjaxLogin.aspx?UT=" + ut +"&UID="+ uid +"&PWD="+ pwd +"&action=Login"; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } req.onreadystatechange = processRequestlogin; req.open("GET", url, true); req.send(null); } function processRequestlogin() { if (req.readyState == 4) { if (req.status == 200) { parseMessageslogin(); } } } function processRequestlogin2() { response = req.responseXML.documentElement; itemDescription = response.getElementsByTagName('login')[0].getAttribute("UserData"); alert(itemDescription); alert('yea'); } function parseMessageslogin() { response = req.responseXML.documentElement; itemDescription = response.getElementsByTagName('loginstatus')[0].getAttribute("status"); if(itemDescription=="True") { var ss1 = document.cookie.split(";"); var UT=0; var i=0; for(i=0; i < ss1.length; i++) { var cset = " " + ss1[i]; var ss2 = cset.split("="); if(cset.indexOf(" UT=")!=-1) { UT = parseInt("0" + ss2[1]); } } window.location.href="/"; /* if(UT=="2") { var hd = document.getElementsByTagName("head")[0]; document.getElementById("MainLogo").src = "/Images/Nasscom_members.gif"; var d = document.createElement("LINK"); d.href = "/Nasscom/styles/members.css"; d.rel = "stylesheet"; d.type = "text/css"; hd.appendChild(d); } document.getElementById("LoginMessage").innerHTML = ""; var url="/AjaxLogin.aspx?UT=GetUD&action=Login"; alert(url); if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } req.onreadystatechange = processRequestlogin2; req.open("GET", url, true); req.send(null); */ } else { errmsg = response.getElementsByTagName('loginstatus')[0].getAttribute("txt"); document.getElementById('msg').innerHTML=errmsg ; } } function getQueryVariable() { var variable = "ID"; var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0; i< vars.length;i++) { var pair = vars[i].split("="); if (pair[0].toLowerCase() == variable.toLowerCase()) return pair[1]; else return 11234; } } function compsearch(q) { window.location.href="/nasscom/templates/MainSearch.aspx?src=15486&q="+q; } function ContinueShopping() { window.location.href= "LandingPage.aspx?id=4865"; } function dropMenu(id) { var menu = document.getElementById("dropmenu_id" + id); menu.style.display = "block"; } function proceed(tid) { window.location.href= "PublicationOrderInvoice.aspx?id=15032&tid="+tid; } function makestring(s) { if(s.src.value == "-1") { alert("Please select a section.\n"); return false; } var qry=""; var q1 = s.q1.value; if (q1.length > 0) { var ss = q1.split(" "); var i=0; for(i=0; i < ss.length; i++) { if(ss[i].length > 0) qry += " +" + ss[i]; } } var q2 = s.q2.value; if(q2.length>0) { qry += " \"" + q2 + "\" "; } var q3 = s.q3.value; if(q3.length>0) { var ss = q3.split(" "); var i=0; for(i=0; i< ss.length; i++) { if( ss[i].length > 0) qry += " " + ss[i]; } } var q4 = s.q4.value; if(q4.length>0) { var ss = q4.split(" "); var i=0; for(i=0; i< ss.length; i++) { if(ss[i].length>0) qry += " -" + ss[i]; } } s.q.value = qry; return true; } function ChangeInBill() { window.location.href= "MyCart.aspx?id=10999"; } /*function DoPay(amt) { if(amt!= "0" ) { window.location.href= "SSL_DOpay.asp?tid=jjpo4vbp5pxxii45yndxtznv"; } else { window.location.href= "PublicationOrderInvoice.aspx?id=15032&tid=jjpo4vbp5pxxii45yndxtznv"; } }*/ function DoPay(amt) { //alert(amt); if(amt!= "0" ) {