<!--// 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 ferrf(row){dgi(row).style.backgroundColor = '#99FF00';}
function fnormf(row){dgi(row).style.backgroundColor = 'transparent';};
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" alt="Processing..." align="absmiddle" />';*/connection2 = new AjaxConnection(url); connection2.setOptions(opts); connection2.connect('callBack',dispin)}
var clear="images/spacer.gif" //path to clear.gif
pngfix=function(){var els=document.getElementsByTagName('*');var ip=/\.png/i;var i=els.length;while(i-- >0){var el=els[i];var es=el.style;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+el.src+"',sizingMethod='crop')";el.src=clear;}else{var elb=el.currentStyle.backgroundImage;if(elb.match(ip)){var path=elb.split('"');var rep=(el.currentStyle.backgroundRepeat=='no-repeat')?'crop':'scale';es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';var elkids=el.getElementsByTagName('*');if (elkids){var j=elkids.length;if(el.currentStyle.position!="absolute")es.position='static';while (j-- >0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}}
window.attachEvent('onload',pngfix);
//--> 