function getV(el){if(document.getElementById(el)){return document.getElementById(el).value.toString();}}
function getE(el){if(document.getElementById(el)){return document.getElementById(el);}}
function getOp(el){return document.getElementById(el).options[document.getElementById(el).selectedIndex].value.toString();}
function isEmail(s){var usr="([a-zA-Z0-9][a-zA-Z0-9_.-]*|\"([^\\\\\x80-\xff\015\012\"]|\\\\[^\x80-\xff])+\")";var domain="([a-zA-Z0-9][a-zA-Z0-9._-]*\\.)*[a-zA-Z0-9][a-zA-Z0-9._-]*\\.[a-zA-Z]{2,5}";var regex="^"+usr+"\@"+domain+"$";var myrxp=new RegExp(regex);var isValid=(myrxp.test(s));return(isValid);}
String.prototype.Trim=function(){return(this.replace(/\s+$/,"").replace(/^\s+/,""));};function resizeIFrame(obj){var aID=obj.id;var pixelAdd=0;try{if(resizeIFrame.arguments.length>1&&!isNaN(resizeIFrame.arguments[1])){pixelAdd=resizeIFrame.arguments[1]}
if(document.getElementById&&document.getElementById(aID).contentDocument){var objFrame=document.getElementById(aID);var objDoc=(objFrame.contentDocument)?objFrame.contentDocument:(objFrame.contentWindow)?objFrame.contentWindow.document:(window.frames&&window.frames[aID])?window.frames[aID].document:(objFrame.document)?objFrame.document:null;var h=(objDoc.body.scrollHeight?objDoc.body.scrollHeight:objDoc.body.offsetHeight);h+=pixelAdd;objFrame.style.height=h.toString()+'px';}
else if(document.all){var objFrame=document.frames(aID);var h=document.frames(aID).document.body.scrollHeight;h+=16+pixelAdd;document.getElementById(aID).style.height=h.toString()+'px';}}
catch(e){}}
