
function h5imav(avatlay){
var avatid = document.getElementById(avatlay); 
if (avatid.style.display == "none"){avatid.style.display = "";}
else{avatid.style.display = "none";}}

function saWindow(url){
window.open(url,'lplanfeature','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=525,height=370');
}

function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}
}
}

function popup(mylink, windowname){
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=225,height=140,left=0,top=0,scrollbars=no');
return false;
}

function checkCR(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
if ((evt.keyCode == 13) && (node.type=="password")) {return false;}
}

document.onkeypress = checkCR;

function neeWindow(url){
window.open(url,'lplanfeature','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=850,height=500');
}