var ns6=document.getElementById&&!document.all function restrictinput(maxlength,e,placeholder) { if (window.event&&event.srcElement.value.length>=maxlength) return false; else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength) { var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys if (pressedkey.test(String.fromCharCode(e.which))) e.stopPropagation(); } } function countlimit(maxlength,e,placeholder) { var theform=eval(placeholder) var lengthleft=maxlength-theform.value.length var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder) if (window.event||e.target&&e.target==eval(placeholder)) { if (lengthleft<0) theform.value=theform.value.substring(0,maxlength) placeholderobj.innerHTML=lengthleft } } function displaylimit(theform,thelimit) { var limit_text=''+thelimit+' CHARACTERS_REMAINING' if (document.all||ns6) document.write(limit_text) if (document.all) { eval(theform).onkeypress=function() { return restrictinput(thelimit,event,theform); } eval(theform).onkeyup=function() { countlimit(thelimit,event,theform); } } else if (ns6) { document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform); }, true); document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform); }, true); } } function Help( daLink ) { var comwin = window.open(daLink,'Help', 'width=560,height=450,scrollbars=yes,resize=no') ; comwin.focus(); } function popUP(mypage, myname, w, h, scroll, titlebar) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function addKeyword(keyword) { document.search_form.keyword_text.value=keyword; } function createWindow(u,n,w,h,r) { args = 'width='+w+',height='+h+',resizable=no,scrollbars=yes,status=0'; remote = window.open(u,n,args); if( remote != null ) { if (remote.opener == null) { remote.opener = self ; } } if( r == 1 ) { return remote; } } var attw =null; var drww =null; function Attach( url ) { if( !attw || attw.closed ) { attw = createWindow( url, 'attachwin', 420, 360, 1); } attw.focus(); } var popUpWindow=1; function AttachFocus() { T_DOCUMENT_BLUR; if( popUpWindow==1 ) { var msg = 'Click "Upload" to add/remove files'; window.alert(msg); popUpWindow=0; } T_DOCUMENT_FOCUS; return false; } function toSt(n) { s="" if(n<10) s+="0" return s+n.toString(); } function countdown() { cl=document.clock; d=new Date(); count=Math.floor((eventdate.getTime()-d.getTime())/1000); if(count<=0) { cl.days.value ="0"; cl.hours.value="0"; cl.mins.value="0"; cl.secs.value="0"; alert("INACTIVE_SUBSCRIPTION_POPUP_MSG"); return; } cl.secs.value=toSt(count%60); count=Math.floor(count/60); cl.mins.value=toSt(count%60); count=Math.floor(count/60); cl.hours.value=toSt(count%24); count=Math.floor(count/24); cl.days.value=count; setTimeout("countdown()",500); } var checkflag = "false"; function check(field) { if (checkflag == "false") { for (i = 0; i < field.length; i++) { field[i].checked = true; } checkflag = "true"; return "UnSelect"; } else { for (i = 0; i < field.length; i++) { field[i].checked = false; } checkflag = "false"; return "Select"; } } function newWindow(file,window) { msgWindow=open(file,window,'resizable=no,width=430,height=380'); if (msgWindow.opener == null) { msgWindow.opener = self; } } function newWindow2(file,window) { msgWindow=open(file,window,'resizable=no,width=530,height=290'); if (msgWindow.opener == null) { msgWindow.opener = self; } } function SetValue(a){ }