function getMouseXY(e) { if (IE) { posX = event.clientX + document.body.scrollLeft posY = event.clientY + document.body.scrollTop } else { posX = e.pageX posY = e.pageY } if (posX < 0){posX = 0} if (posY < 0){posY = 0} if(showTtp) { currTtp.style.left=(posX)+"px"; currTtp.style.top=(posY+22)+"px"; } return true } function getWH() { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } } function commonFunctionsAfterLoad() { getWH(); document.onmousemove = getMouseXY; createToolTip(); setDivToPosition('header_button_panel','middle','top',0,0); fadeIn('header_button_panel',500); } function afterResized() { getWH(); setDivToPosition('header_button_panel','middle','top',0,0); fadeIn('header_button_panel',500); } function dimObj(obj) { var i=80; obj.style.opacity = (i / 100); obj.style.MozOpacity = (i / 100); obj.styleKhtmlOpacity = (i / 100); obj.style.filter = "alpha(opacity=" + i + ")"; } function lightObj(obj) { var i=100; obj.style.opacity = (i / 100); obj.style.MozOpacity = (i / 100); obj.styleKhtmlOpacity = (i / 100); obj.style.filter = "alpha(opacity=" + i + ")"; } //=================================================================For tooltip============================> function createToolTip() { currTtp=document.createElement('div'); currTtp.id='asd'; mttp_div=currTtp; mttp_div.style.position='absolute'; mttp_div.style.fontFamily='Verdana, Arial, Helvetica, sans-serif'; mttp_div.style.fontSize='10px'; mttp_div.style.color='#333333'; mttp_div.style.zIndex='999999'; mttp_div.style.border='1px dotted #FFCC66'; mttp_div.style.backgroundColor='#EEEEEE'; mttp_div.style.padding='5px'; document.body.appendChild(mttp_div); mttp_div.style.display="none"; } var finintervalId; var ini=0; function showToolTip(str) { showTtp=true; str=str.replace('%nl%','
'); currTtp.innerHTML=str; ttpfadeIn(currTtp.id,200); } function hideToolTip() { clearInterval(finintervalId); showTtp=false; ttpfadeOut(currTtp.id,100); } function ttpfadeOut(thisId,speed) { var obj = document.getElementById(thisId); //obj.style.zoom = 1; //needed for IE speed = speed/20; var i = ini; var intervalId = setInterval(function() { if(showTtp) clearInterval(intervalId); if(i>=0) { obj.style.opacity = (i / 100); obj.style.MozOpacity = (i / 100); obj.styleKhtmlOpacity = (i / 100); obj.style.filter = "alpha(opacity=" + i + ")"; //document.getElementById('info').innerHTML=i; i -= 5; } else { setTimeout(function() {obj.style.display = "none";}, speed); clearInterval(intervalId); return false; } }, speed); } function ttpfadeIn(thisId,speed) { var obj = document.getElementById(thisId); obj.style.display = "block"; //obj.style.zoom = 1; //needed for IE obj.style.opacity = 0; obj.style.filter = "alpha(opacity = 0)"; speed = speed/20; var i = 0; finintervalId = setInterval(function() { if(i <= 100) { obj.style.opacity = (i / 100); obj.style.MozOpacity = (i / 100); obj.styleKhtmlOpacity = (i / 100); obj.style.filter = "alpha(opacity=" + i + ")"; //document.getElementById('info').innerHTML=i; i += 5; ini=i; } else { //setTimeout(function() {obj.style.display = "block";}, speed); clearInterval(finintervalId); return false; } }, speed); } //=================================================================For tooltip============================| //======================================================Absolute Positioning of div======================> function setDivToPosition(div_id,allign_x,allign_y,xfactor,yfactor) { var mydiv=document.getElementById(div_id); mydiv.style.display='block'; mydiv.style.position='absolute'; divWidth=mydiv.offsetWidth; divHeight=mydiv.offsetHeight; if(allign_x=='left')mydiv.style.left=xfactor+'px'; else if(allign_x=='right')mydiv.style.left=(myWidth-xfactor-divWidth)+'px'; else if(allign_x=='middle')mydiv.style.left=((myWidth-divWidth)/2+xfactor)+'px'; if(allign_y=='top')mydiv.style.top=yfactor+'px'; else if(allign_y=='bottom')mydiv.style.top=(myHeight-yfactor-divHeight)+'px'; else if(allign_y=='middle')mydiv.style.top=((myHeight-divHeight)/2-yfactor)+'px'; //alert((myHeight-divHeight)/2-yfactor); } //======================================================Absolute Positioning of div======================| function setDivSize(divid, ww, hh) { obj=document.getElementById(divid); if(ww!='*')obj.style.width=ww+'px'; if(hh!='*')obj.style.height=hh+'px'; } //======================================================Fadein Fadeout Div================================> function fadeOut(thisId,speed) { var obj = document.getElementById(thisId); //obj.style.zoom = 1; //needed for IE speed = speed/20; var i = 100; var intervalId = setInterval(function() { if(i>=0) { obj.style.opacity = (i / 100); obj.style.MozOpacity = (i / 100); obj.styleKhtmlOpacity = (i / 100); obj.style.filter = "alpha(opacity=" + i + ")"; //document.getElementById('info').innerHTML=i; i -= 5; } else { setTimeout(function() {obj.style.display = "none";}, speed); clearInterval(intervalId); return false; } }, speed); } function fadeIn(thisId,speed) { var obj = document.getElementById(thisId); obj.style.display = "block"; //obj.style.zoom = 1; //needed for IE obj.style.opacity = 0; obj.style.filter = "alpha(opacity = 0)"; speed = speed/20; var i = 0; var intervalId = setInterval(function() { if(i <= 100) { obj.style.opacity = (i / 100); obj.style.MozOpacity = (i / 100); obj.styleKhtmlOpacity = (i / 100); obj.style.filter = "alpha(opacity=" + i + ")"; //document.getElementById('info').innerHTML=i; i += 5; } else { //setTimeout(function() {obj.style.display = "block";}, speed); clearInterval(intervalId); return false; } }, speed); } //======================================================Fadein Fadeout Div================================| function expandDiv(divId,fromSz,toSz,expBy,speed) { var obj = document.getElementById(divId); obj.style.display = "block"; //obj.style.height=fromSz+'px'; var i = 0; var inc=1; exp_act='expand'; switch(expBy) { case 'width': if(parseInt(obj.style.width)==toSz)exp_act='declose'; else obj.style.width=fromSz+'px'; break; default: if(parseInt(obj.style.height)==toSz)exp_act='declose'; else obj.style.height=fromSz+'px'; break; } var intervalId = setInterval(function() { if(expBy=='width') { switch(exp_act) { case 'expand': if(parseInt(obj.style.width)fromSz) { i += inc; if(i>fromSz)i=fromSz; obj.style.width= (parseInt(obj.style.width)-i)+'px'; } else { clearInterval(intervalId); obj.style.width=fromSz+'px'; return false; } break; } } else { switch(exp_act) { case 'expand': if(parseInt(obj.style.height)<=toSz) { i += inc; obj.style.height= (parseInt(obj.style.height)+i)+'px'; } else { clearInterval(intervalId); obj.style.height=toSz+'px'; return false; } break; case 'declose': if(parseInt(obj.style.height)>=fromSz) { i += inc; if(i>fromSz)i=fromSz; obj.style.height= (parseInt(obj.style.height)-i)+'px'; } else { obj.style.height=fromSz+'px'; clearInterval(intervalId); return false; } break; } } }, speed); } function clearBox(val,obj){if(obj.value==val){obj.select();}else chkBlank(val,obj);} function chkBlank(val,obj){if(obj.value=='')obj.value=val;} function mkPasswordField(val,obj){obj.type='password';} function onstartSelect(divid){document.getElementById(divid).select();} function createLoader(container,str) { currLdr=document.createElement('div'); currLdr.id='pageloader'; currLdr.style.position='absolute'; currLdr.align='center'; currLdr.style.fontFamily='Verdana, Arial, Helvetica, sans-serif'; currLdr.style.fontSize='11px'; currLdr.style.fontWeight='bold'; currLdr.style.color='#333333'; currLdr.style.zIndex='999999'; currLdr.style.border='1px solid #999999'; currLdr.style.backgroundColor='#FFFFCC'; currLdr.style.padding='5px'; currLdr.style.opacity='0.80'; currLdr.style.filter='alpha(opacity: 80)'; document.getElementById(container).style.display='block'; document.getElementById(container).appendChild(currLdr); currLdr.innerHTML=''+str+''; currLdr.style.width=currLdr.offsetWidth+'px'; currLdr.innerHTML=str; /*currLdr.style.display="none";*/ setDivToPosition('pageloader','middle','top',0,0); showLoader(); } function showLoader() { str=currLdr.innerHTML; strlen=str.length; view_str=''; curpos=0; var ldrintervalId = setInterval(function() { curpos++; if(curpos>=strlen){curpos=0;view_str='';} pre_str=str.slice(0,curpos); post_str=str.slice(curpos+1,strlen); view_str='

'+pre_str+''+str.charAt(curpos)+''+post_str+'

PLEASE BE PATIENT WHILE LOADING

'; currLdr.innerHTML=view_str; },100); } function loadPage(loadtoid,pageName,getVar) { document.getElementById(loadtoid).innerHTML=''; var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { //alert(xmlHttp.responseText); document.getElementById(loadtoid).innerHTML=xmlHttp.responseText; } } xmlHttp.open("GET","site/user/php/pbox/"+pageName+".php?"+getVar,true); xmlHttp.send(null); } function sendAndLoad(loadtoid,pageName,getVar,redirect) { if(loadtoid!='')document.getElementById(loadtoid).innerHTML='...'+document.getElementById(loadtoid).innerHTML; var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { //alert(xmlHttp.responseText); if(loadtoid!='')document.getElementById(loadtoid).innerHTML=xmlHttp.responseText; if(redirect!='')location=redirect; } } xmlHttp.open("GET",base_url+"/site/user/php/pbox/"+pageName+".php?"+getVar,true); xmlHttp.send(null); } function sendAndLoadFunc(loadtoid,pageName,getVar,func) { if(loadtoid!='')document.getElementById(loadtoid).innerHTML='...'+document.getElementById(loadtoid).innerHTML; var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { //alert(xmlHttp.responseText); if(loadtoid!='')document.getElementById(loadtoid).innerHTML=xmlHttp.responseText; eval(func); } } xmlHttp.open("GET",base_url+"/site/user/php/pbox/"+pageName+".php?"+getVar,true); xmlHttp.send(null); } function submitNletter(msg) { document.getElementById('news_letter_msg').style.display='block'; nleml=document.getElementById('hnletter').value; if(isEmail(nleml)) { getVar='nl_email='+nleml; sendAndLoad('news_letter_msg','submit_nletter',getVar,''); } else document.getElementById('news_letter_msg').innerHTML=msg; return false; } function changeLanguage(langid,url) { sendAndLoad('flags','change_language','lang='+langid,url) } function checkFocus(obj_div,msg) { var obj=document.getElementById(obj_div); obj.onfocus=function(){if(obj.value==msg)obj.value='';} obj.onblur=function(){if(obj.value=='')obj.value=msg;} obj.onchange=function(){if(obj.value=='')obj.value=msg;} } function number_format (number, decimals, dec_point, thousands_sep){ if (isNaN(number) || number=='') number = 0; var decimals = decimals != undefined ? decimals : 2, dec_point = dec_point != undefined ? dec_point : '.', thousands_sep = thousands_sep != undefined ? thousands_sep : ' ', negative = number<0; if (negative) number *= -1; var left = parseInt(number, 10), right = Math.round(parseFloat(number.toString().replace(/^\d+./, '0.')) * Math.pow(10, decimals)); left = left.toString().split('').reverse().join('') .match(/\d{3}|\d{1,2}/g) .join(thousands_sep) .split('').reverse().join(''); right = (right / Math.pow(10,decimals)).toString().replace(/^\d+./, '').toString(); if (right.length < decimals) for (var iRight=right.length; iRight < decimals; iRight++) right += '0'; return (negative?'-':'')+left+dec_point+right; } var boxValidation='N'; function checkCreateProfile() { var err=0; err+=validate('username','empty','Please write your profile box name !'); if(err==0)err+=validate('username','boxlength','Box name length is 3 to 30 accepted !'); if(err==0)err+=validate('username','boxalias','We accept regular charaters, numbers, desh[-] and dot[.] only !'); if(err==0)validateProfileBox('username','Y'); err+=validate('useremail','email','Email is not correct !'); err+=validate('userfname','empty','Please write your first name !'); err+=validate('userlname','empty','Please write your last name !'); err+=validate('q_answer','empty','Please do the simple math !'); if(err==0)boxValidation='Y'; else boxValidation='N'; return false; } function validateProfileBox(boxname,submit_box) { var err=0; err+=validate('username','empty','Please write your profile box name !'); if(err==0)err+=validate('username','boxlength','Box name length is 3 to 30 accepted !'); if(err==0)err+=validate('username','boxalias','We accept regular charaters, numbers, desh[-] and dot[.] only !'); if(err==0) { box=document.getElementById(boxname).value; objerr=document.getElementById(boxname+'_err'); objerr.innerHTML='...'; var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { var responce=(xmlHttp.responseText); if(responce=='Y')customvalidateok(boxname+'_err','Congratulations ! Box name is available'); else customvalidate(boxname+'_err','Sorry ! Box name has taken'); if(boxValidation=='Y' && submit_box=='Y' && responce=='Y') document.getElementById('cpb_form').submit(); } } getVar='box_name='+box; xmlHttp.open("GET",base_url+"/site/user/php/pbox/boxname_validate.php?"+getVar,true); xmlHttp.send(null); } } //Edit profile---> function chooseImage(nn,key,type,url) { var getVal='img_no='+nn+'&img_key='+key+'&img_type='+type; sendAndLoad('','choose_profile_image',getVal,url); createLoader('cildr','..... Please wait while initializing your Image .....'); } function selectCountryOpt(tag_id) { document.getElementById('cnt_bd').checked=false; document.getElementById('cnt_ot').checked=false; document.getElementById(tag_id).checked=true; document.getElementById('bd_opt').style.display='none'; document.getElementById('ot_opt').style.display='none'; switch(tag_id) { case 'cnt_bd': document.getElementById('bd_opt').style.display='block'; break; case 'cnt_ot': document.getElementById('ot_opt').style.display='block'; break; } } function getDistricts(div_name) { document.getElementById('dis_combo').innerHTML=''; document.getElementById('thana_combo').innerHTML=''; var getVal='division='+div_name; sendAndLoad('dis_combo','get_district_combo',getVal,''); } function getThana(dis_name) { document.getElementById('thana_combo').innerHTML=''; var getVal='district='+dis_name; sendAndLoad('thana_combo','get_thana_combo',getVal,''); } function updateSkill(sid,ualias,nn) { sval=document.getElementById('us_'+nn).value; sval=sval.replace('&','|AND|'); var getVal='skill_id='+sid+'&user_alias='+ualias+'&s_val='+sval; var func="sendAndLoad('skill_box','get_skill_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','update_skill',getVal,func); } function deleteSkill(sid,ualias) { var getVal='skill_id='+sid+'&user_alias='+ualias; var func="sendAndLoad('skill_box','get_skill_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','delete_skill',getVal,func); } function changeSkillOrder(sid,ualias,doact) { var getVal='skill_id='+sid+'&user_alias='+ualias+'&act='+doact; var func="sendAndLoad('skill_box','get_skill_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','update_skill_order',getVal,func); } function updateCertification(sid,ualias,nn) { sval=document.getElementById('uc_'+nn).value; sval=sval.replace('&','|AND|'); yval=document.getElementById('uy_'+nn).value; var getVal='certification_id='+sid+'&user_alias='+ualias+'&s_val='+sval+'&y_val='+yval; var func="sendAndLoad('certification_box','get_certification_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','update_certification',getVal,func); } function deleteCertification(sid,ualias) { var getVal='certification_id='+sid+'&user_alias='+ualias; var func="sendAndLoad('certification_box','get_certification_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','delete_certification',getVal,func); } function updateInstitute(sid,ualias,nn) { sval=document.getElementById('ui_'+nn).value; sval=sval.replace('&','|AND|'); var getVal='institute_id='+sid+'&user_alias='+ualias+'&s_val='+sval; var func="sendAndLoad('institute_box','get_institute_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','update_institute',getVal,func); } function deleteInstitute(sid,ualias) { var getVal='institute_id='+sid+'&user_alias='+ualias; var func="sendAndLoad('institute_box','get_institute_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','delete_institute',getVal,func); } function changeInstituteOrder(sid,ualias,doact) { var getVal='institute_id='+sid+'&user_alias='+ualias+'&act='+doact; var func="sendAndLoad('institute_box','get_institute_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','update_institute_order',getVal,func); } function updateProfession(sid,ualias,nn) { sval=document.getElementById('up_'+nn).value; sval=sval.replace('&','|AND|'); cval=document.getElementById('uc_'+nn).value; cval=cval.replace('&','|AND|'); ysval=document.getElementById('ys_'+nn).value; yeval=document.getElementById('ye_'+nn).value; var getVal='profession_id='+sid+'&user_alias='+ualias+'&s_val='+sval+'&c_val='+cval+'&ys_val='+ysval+'&ye_val='+yeval; var func="sendAndLoad('profession_box','get_profession_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','update_profession',getVal,func); } function deleteProfession(sid,ualias) { var getVal='profession_id='+sid+'&user_alias='+ualias; var func="sendAndLoad('profession_box','get_profession_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','delete_profession',getVal,func); } function deleteLink(sid,ualias) { var getVal='link_id='+sid+'&user_alias='+ualias; var func="sendAndLoad('link_box','get_link_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','delete_link',getVal,func); } function changeLinkOrder(sid,ualias,doact) { var getVal='link_id='+sid+'&user_alias='+ualias+'&act='+doact; var func="sendAndLoad('link_box','get_link_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','update_link_order',getVal,func); } function deleteFeed(sid,ualias) { var getVal='feed_id='+sid+'&user_alias='+ualias; var func="sendAndLoad('feed_box','get_feed_edit','"+getVal+"','')"; sendAndLoadFunc('pebi_info','delete_feed',getVal,func); } function changeTheme(theme_no,url) { getVal='theme_id='+theme_no; sendAndLoad('','change_profile_theme',getVal,url); createLoader('rtnbox','..... Please wait while changing your theme .....'); } //Global Variables---------------------------------------------------> var myWidth = 0; var myHeight = 0; var IE = document.all?true:false var posX = 0; var posY = 0; var loadState=0; var currTtp; var showTtp=false; //Global Variables---------------------------------------------------| //Initialize Variables-----------------------------------------------> getWH(); //Initialize Variables-----------------------------------------------| var lgbox_status='N'; window.onload=function() { commonFunctionsAfterLoad(); } window.onresize=function() { afterResized(); } function validate(objectId,type,errMsg) { var err=0; obj=document.getElementById(objectId); objerr=document.getElementById(objectId+'_err'); noerr='Your Input is Correct'; switch(type) { case 'email': if(!isEmail(obj.value)){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; case 'alphanum': if(!isAlphaNumeric(obj.value)){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; case 'confirm': objc=document.getElementById(objectId+'_conf'); if(!isConfirm(obj.value,objc.value)){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; case 'num': if(!isNumeric(obj.value)){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; case 'empty': if(!isEmpty(obj.value)){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; case 'onlyalpha': if(!isOnlyAlpha(obj.value)){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; case 'boxalias': if(!isBoxAlias(obj.value)){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; case 'boxlength': if(obj.value.length<3 || obj.value.length>30){err=1;messageBubble(objerr,errMsg);} else {objerr.innerHTML='';} break; } return err; } function isEmail(email) { if(email.length <= 0) { return false; } var splitted = email.match("^(.+)@(.+)$"); if(splitted == null) return false; if(splitted[1] != null ) { var regexp_user=/^\"?[\w-_\.]*\"?$/; if(splitted[1].match(regexp_user) == null) return false; } if(splitted[2] != null) { var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/; if(splitted[2].match(regexp_domain) == null) { var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/; if(splitted[2].match(regexp_ip) == null) return false; }// if return true; } return false; } function isOnlyAlpha(val) { if(val=='') return false; if(val.search("[^A-Za-z]")==-1) return true; else return false; } function isAlphaNumeric(val) { if(val=='') return false; if(val.search("[^A-Za-z0-9\-_ ]")==-1) return true; else return false; } function isBoxAlias(val) { if(val=='') return false; if(val.search("[^A-Za-z0-9\-.]")==-1) return true; else return false; } function isEmpty(val) { if(val=='') return false; else return true; } function isNumeric(val) { if(val=='') return false; if(val.search("[^0-9\.]")==-1) return true; else return false; } function isConfirm(val,val1) { if(val==val1) return true; else return false; } function customvalidate(objectId,msg) { cuserrnok=msg; objerr=document.getElementById(objectId); messageBubble(objerr,cuserrnok); return 1; } function customvalidateok(objectId,msg) { cuserrok=msg; objerr=document.getElementById(objectId); objerr.innerHTML=''; return 0; } function messageBubble(obj,msg) { var bubble='
'+msg+'
 
'; //alert(bubble); obj.innerHTML=bubble; //alert(obj.innerHTML); }