<!--// common_functions
function ele(id,task){dgi(id).style.display=task;}
function disp_toggle(id){if(dgi(id).style.display == 'block'){ele(id,'none');} else {ele(id,'block');}}
function dgi(id){return document.getElementById(id);}function dgn(name){return document.getElementByName(name);}
function showdoing(id){tempsrc = dgi(id).src; dgi(id).src='http://www.merilocal.com/images/doing.gif'; a = setInterval("dgi('"+id+"').src=tempsrc; clearInterval(a);",1000);}
function charlimit(field,count,showin){var tex = field.value; var len = tex.length; if(len > count){tex = tex.substring(0,count); field.value = tex; return false;}dgi(showin).innerHTML = count-len;}
function alphanum(o,w){var r={'special':/[\W]/g}; o.value = o.value.replace(r[w],'');}
function emv(entered){with (entered){apos=entered.indexOf("@");dotpos=entered.lastIndexOf(".");lastpos=entered.length-1;if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) {return false;}else {return true;}}}
function fc(){if(document.forms.f.q.value==''){return false;}}
function wl(url){window.location.href=url;}
function foo(){}
function oc(t){t.style.backgroundColor='#ffffcc';}function ooc(t){t.style.background='none';}
function askyes(msg){if(confirm(msg)){return true;}else{return false;}}
function gHObj(){var xmlhttp;if(window.XMLHttpRequest){xmlhttp = new XMLHttpRequest();}else if (window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");if (!xmlhttp){xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}}return xmlhttp;}
function AjaxConnection(url){this.setOptions=setOptions;this.getOptions=getOptions;this.connect=connect;this.uri=url;}function setOptions(opt){for(i=0;i<opt.length;i++){this.options += "&"+opt[i];}this.options += "&rand="+Math.random()*999999;}function getOptions(){return this.options;}function connect(return_func,showin){with(this){x=init_object();x.open("POST", uri,true);x.onreadystatechange = function(){if (x.readyState != 4)return;eval(return_func + '(x.responseText,showin)');delete x;}
x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');x.send(options);}}function init_object(){var x;try{     x=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{x=new ActiveXObject("Microsoft.XMLHTTP");}catch(oc){x=null;}}if(!x && typeof XMLHttpRequest != "undefined")x = new XMLHttpRequest();if(x)return x;}function callBack(content,showin){dgi(showin).innerHTML=content;}function fajax(url,opts,dispin){dgi(dispin).innerHTML='<img src="images/loading.gif" align="absmiddle" />'; connection2 = new AjaxConnection(url); connection2.setOptions(opts); connection2.connect('callBack',dispin)}


//--> 