function postVars() { var f = document.getElementById('form_hide'); for(var i = 0; i < arguments.length; i++) { var v = document.createElement('input'); v.setAttribute('type','hidden'); var t = arguments[i].split('===='); v.setAttribute('name',t[0]); v.setAttribute('value',t[1]); //alert(t[0]+":"+t[1]+":"+arguments[i]); f.appendChild(v); } f.submit(); } function chMed(m,i,p) { //var p = (p) ? p : 5; window['medi'+m] += i; if(window['med'+m].length==window['medi'+m]) window['medi'+m] = 0; else if(window['medi'+m]==-1) window['medi'+m] =window['med'+m].length - 1; if(typeof window['med'+m][window['medi'+m]] == 'object') did('medh'+m).innerHTML=window['med'+m][window['medi'+m]].ih; else did('medh'+m).src='index.php?action=IMG&mi='+window['med'+m][window['medi'+m]]; if(p>0) setTimeout("chMed('"+m+"',"+i+",'"+p+"')",p*1000) } function onL(f) { var gwfrm = did('GW_INFO'); if(gwfrm) { var t = validateForm(gwfrm,window.document); if(t==false) { return false; } }// var t = validateForm(f,window.document); if(t==false) return t; if(f.pw.value.length<=4) { alert('Password too short (atleast 5 characters)'); return false; } //Success if(gwfrm) { var pva = new Array(); var gwar = gwfrm.elements; for(var i =0; i < gwar.length; i++) { var v = document.createElement('input'); v.setAttribute('type','hidden'); v.setAttribute('name',gwar[i].name); v.setAttribute('value',gwar[i].value); f.appendChild(v); }// return true; }//if gwfrm return true; } function onR(f) { var gwfrm = did('GW_INFO'); if(gwfrm) { var t = validateForm(gwfrm,window.document); if(t==false) return t; }// var t = validateForm(f,window.document); if(t==false) return t; if(f.p1.value.length<5) { alert('Password too short (atleast 5 characters)'); return false; } if(f.p1.value=='' || f.p1.value != f.p2.value) { alert('Password do not match or empty password.'); return false; } //Success if(gwfrm) { var pva = new Array(); var gwar = gwfrm.elements; for(var i =0; i < gwar.length; i++) { var v = document.createElement('input'); v.setAttribute('type','hidden'); v.setAttribute('name',gwar[i].name); v.setAttribute('value',gwar[i].value); f.appendChild(v); }// return true; }//if gwfrm return true; }function pv() { var j = 0; if(arguments[0]==0 && !confirm(arguments[1])) { return; } if(arguments[0]==0) var j = 2; if(arguments[0].join) arguments = arguments[0]; var f = document.createElement('form'); f.setAttribute('id','ttfrm'); f.setAttribute('method',"POST"); f.setAttribute('action',pageurl); var addmc = true; var tgt = false; for(var i = j; i < arguments.length; i+=2) { if(arguments[i]!='') { //alert(arguments[i]+":"+arguments[i+1]); var v = document.createElement('input'); v.setAttribute('type','hidden'); v.setAttribute('name',arguments[i]); v.setAttribute('value',arguments[(i+1)]); f.appendChild(v); if(arguments[i]=='mc') addmc = false; if(arguments[i]=='target') tgt = arguments[i+1]; } } if(addmc) { var v = document.createElement('input'); v.setAttribute('type','hidden'); v.setAttribute('name','mc'); v.setAttribute('value',mc); f.appendChild(v); } if(tgt) tgt.document.body.appendChild(f); else document.body.appendChild(f); f.submit(); } var shimg = true; function showImage(ih,w,h,place) { if(ih==0 && w!=1) return; w = eval(w); h = eval(h); //alert(h); w = (w <= 0) ? 500 : w; h = (h <= 0) ? 300 : h; h += eval(15); h = (h>500) ? 500 : h; w += 15; var l = (place=='M_2') ? 30 : 380; l = 380; try{ var t = document.getElementById('MED_VIEW'); document.body.removeChild(t) }catch(e) { } if(ih != 0) { var v=document.createElement('div'); v.setAttribute('id','MED_VIEW'); if(is.IE) v.style.position='absolute'; else v.style.position='fixed'; v.style.left=l+'px'; v.style.top='100px'; v.style.width=w+'px'; v.style.height=h+'px'; v.style.backgroundColor='#AAAAAA'; v.style.visibility='visible'; v.style.overflow='auto'; v.style.padding='0px'; v.style.borderStyle='outset'; var iht = ""; iht += ""; iht += ""; iht += "
X   
"; v.innerHTML = iht; v.style.zIndex=100000; //v.setAttribute("onMouseOut","showImage(0,1);"); document.body.appendChild(v); //setTimeout("showImage(0,1);",8000); }//1 } function downloadFileForm(obj) { if(obj.confirm_msg && obj.confirm_msg.length>0) { if(!confirm(obj.confirm_msg)) return; delete obj.confirm_msg; } var addmc = true; //var t = did('download_frm'); //t.innerHTML = ''; var t = document.createElement('form'); t.setAttribute('id','ttfrm'); t.setAttribute('method',"POST"); if(obj.form_action=='') obj.form_action='index.php'; t.setAttribute('action',obj.form_action); document.body.appendChild(t); for(var i in obj) { var v = document.createElement('input'); v.setAttribute('type','hidden'); v.setAttribute('name',i); v.setAttribute('value',obj[i]); t.appendChild(v); if(i=='mc') addmc = false; } if(addmc) { var v = document.createElement('input'); v.setAttribute('type','hidden'); v.setAttribute('name','mc'); v.setAttribute('value',mc); t.appendChild(v); } if(!is.IE) { var d = document.createElement('iframe'); d.setAttribute('id','download1'); d.setAttribute('name','download1'); d.setAttribute('frameborder','1'); d.style.height = '1px'; d.style.visibility = 'hidden'; document.body.appendChild(d); t.target = 'download1'; } if(obj.target && obj.target!='') t.target = obj.target; if(is.IE ) t.target = '_self'; if(obj.enctype != '') t.setAttribute('enctype',obj.enctype); t.action = obj.form_action; t.submit(); } function popwin(url,title) { title = '';//(title!='') ? title : ''; winpop = window.open(url,title,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=850,height=500,left=100,top=100"); } function ddn(d,a) { if(a==undefined) a = 'DOC_DN'; pv('action',a,'did',d); } function frmact(a) { did('L_DIV').innerHTML = window['ih'+a]; try{ did('act_'+a).checked = true; }catch(e){}; return; }// function scwin() { var scw = did('sc_win'); if(scw) scw.innerHTML = "
"; //scw.innerHTML = "
  
"; }// function selp(p) { parent.window.location = pageurl+"&pid="+p; } function dhwin(ih,w,h) { if(ih==0 && w!=1) { //alert(ih+" 0 found"); //return; } ih = (ih==2) ? "https://secure.edventures.com/imssc/nsimssc/smindex.php?mid=564&sa=PRIVACY&" : ih; var l = '100'; var t = '50'; var w = 600; var h = 400; try{ var t = document.getElementById('POP_INFO'); document.body.removeChild(t) }catch(e) { } if(ih != 0) { var v=document.createElement('div'); v.setAttribute('id','POP_INFO'); if(is.IE) v.style.position='absolute'; else v.style.position='fixed'; v.style.left='100px'; v.style.top='100px'; v.style.width=w+'px'; v.style.height=h+'px'; v.style.backgroundColor='#CCCCCC'; v.style.visibility='visible'; v.style.overflow='auto'; v.style.padding='0px'; v.style.borderStyle='outset'; var iht = ""; iht += ""; iht += "
Close Window