if (top.location != location) {top.location.href = document.location.href ; }if (top.location != self.location) {top.location.href = self.location.href ;} function AreYouSure() { return window.confirm('Are You Sure?');} function pop(url) { var win; win=window.open(url,'',''); } function pop1(url,parms) { var win; win=window.open(url,'',parms); } function validateSub(x) { var msg=''; switch (true) { case (!(x.mask==undefined)): if (!x.value.match(eval('/'+x.mask+'/'))) msg=msg + validateFormatName(x) + ' does not match the expected input.\n'; break; case ((x.name.toLowerCase().match(/emailid/)) && (!x.value.match(/^.+\@.+\..+$/))): break; case ((x.name.toLowerCase().match(/email/)) && (!x.value.match(/^.+\@.+\..+$/))): msg=msg + validateFormatName(x) + ' must be a valid email address.\n'; break; case ((x.name.toLowerCase().match(/(phone|fax|cellular|primary|alternate)/)) && (!x.value.match(/^[\d\+\(\)\-\.\x ]{7,}$/))): msg=msg + validateFormatName(x) + ' must be a valid phone number.\n'; break; } return msg; } function validateFormatName(x) { var out=x.name.charAt(0).toUpperCase() + x.name.substr(1).toLowerCase(); out=out.replace(/[_-]/g,' '); return out; } function validate(f) { var msg=''; for (var i=0;i'; var top=0; this.div=document.createElement('div'); this.div.id='div'; this.div.style.position='fixed'; this.div.style.top=0; this.div.style.left=0; this.div.style.height='100%'; this.div.style.width='100%'; if (navigator.userAgent.indexOf('MSIE')>0) { this.div.style.backgroundColor='#000000'; this.div.style.filter='alpha(opacity=30)'; } this.div.onclick=function() { document.body.removeChild(document.getElementById('div')); } this.center=null this.center = document.createElement('center'); this.msg=document.createElement('div'); this.msg.id='msg'; this.msg.className='msg'; this.msg.style.position='relative'; switch (true) { case (navigator.userAgent.indexOf('MSIE')>0): top=25; this.msg.style.top=top; break; case (navigator.userAgent.indexOf('Firefox')>0): if (window.pageYOffset>0) { top=(document.body.clientHeight-window.pageYOffset)*0.30; } else { top=(document.body.clientHeight*0.20); } this.msg.style.top=top+'px'; break; default: if (document.body.scrollTop>0) { top=(document.body.clientHeight-document.body.scrollTop)*0.30; } else { top=(document.body.clientHeight*0.20); } this.msg.style.top=top+'px'; } this.msg.style.backgroundColor='#eaeaea'; this.msg.style.border='10px solid #4f6a98'; this.msg.style.width='50%'; this.msg.style.color='steelblue'; this.msg.style.padding='15px'; this.msg.style.textAlign='left'; this.msg.innerHTML=closelink+msg; this.center.appendChild(this.msg); this.div.appendChild(this.center); document.body.appendChild(this.div); } }