// electronic mail hider :)
/* <script language="javascript" type="text/javascript">email_custom('domain','class','text','subject','to')</script> */

function email_custom(domain,myclass,text,subject,to){
		var email="<a href='";
		email += "mailto:";
		email += to;
		email += "@"+domain;
		if(subject){email += "?SUBJECT="+subject};
		email += "'";
		if(myclass){email += " class='"+myclass+"'"};
		email += ">";
		if (text){email +=text}else{email += to+"@"+domain};
		email +="</a>";
		document.write(email);
}

// Strip http info from url field using RegEx called ::: clean(this);
function clean(obj){
	var RegularExpression  =  new RegExp("^(((ht|f)tp(s?))\://)");
	obj.value = obj.value.replace(RegularExpression,'');
}

//Large image viewer for use within a popup form
// Usage:  <body onLoad="ResizeToFit()">  OR <body onLoad="ResizeToFit('55','150')">
// The image MUST have an name of "imgLarge"

function ResizeToFit (xWidth,xHeight){
	var imgWidth 
	var imgHeight
	if(xWidth){}else{xWidth=55}
	if(xHeight){}else{xHeight=150}
	if (document.imgLarge && document.imgLarge.complete){
	 imgWidth = document.imgLarge.width + xWidth
	 imgHeight = document.imgLarge.height + xHeight
	 if(document.loading){dwfaq_ToggleOMaticDisplay('loading');return document.MM_returnValue}
	 window.resizeTo(imgWidth, imgHeight)
	}
}

function popup(src) {
	win = window.open(src,"",
	"top=20,left=20,height=450,width=450,toolbar=no, \
	location=no,directories=no,status=no,menubar=no, \
	scrollbars=yes,resizable=yes");
}

/*If you wish to use the above ide for a static HTML Page - you can insert the following code where you want the image
<script language=javascript>
	var i;
	var imgname;

	i = window.location.href.indexOf("?") + 1;
	imgname = window.location.href.substring(i,255);
	document.write('<img name=imgLarge src=' + imgname + '>');
</script>

The calling page must call the image in this manner...
<a href=javascript:popup('largeImagePage.html?http://imgLocation/imgName.gif')>
*/

//  DWFAQ SECTION    
<!--
function dwfaq_getCSSPropertyValue(obj,cP,jP){//v1.1 
//Copyright © 2004-2005 Angela C. Buraglia & DWfaq.com
//All Rights Reserved. Not for distribution. support@dwfaq.com
//Support Newsgroup: news://support.dwfaq.com/support
	if(typeof(obj)!='object'){var obj=document.getElementById(obj);}
	if(typeof(obj.currentStyle)!='object'){
		return (typeof(document.defaultView) == 'object' && document.defaultView.getComputedStyle(obj,''))?
		document.defaultView.getComputedStyle(obj,'').getPropertyValue(cP):
		obj.style.getPropertyValue(cP);}
	else{
		return (navigator.appVersion.indexOf('Mac')!=-1)?
		obj.currentStyle.getPropertyValue(cP):
		obj.currentStyle.getAttribute((jP)?jP:cP);}
}

function dwfaq_ToggleOMaticDisplay(){//v1.0
//Copyright © 2004 Angela C. Buraglia & DWfaq.com
//All Rights Reserved. Not for distribution. support@dwfaq.com
//Support Newsgroup: news://support.dwfaq.com/support
	var obj,cS,args=dwfaq_ToggleOMaticDisplay.arguments;document.MM_returnValue=(typeof(args[0].href)!='string')?true:false;
	for(var i=1;i<args.length;i++){obj=document.getElementById(args[i]);
		if(obj){cS=dwfaq_getCSSPropertyValue(obj,'display');
			if(!obj.dwfaq_OD){obj.dwfaq_OD=(cS!='none'&&cS!='')?cS:(obj.tagName.toUpperCase()=='TR' && cS!=='none')?'':
			(obj.tagName.toUpperCase()=='TR' && typeof(obj.currentStyle)!='object')?'table-row':'block';}
			obj.style.display=(cS!='none')?'none':obj.dwfaq_OD}}
}
//-->
<!--
function dwfaq_ToggleOMaticClass(){//v1.1
//Copyright © 2004-2005 Angela C. Buraglia & DWfaq.com
//All Rights Reserved. Not for distribution. support@dwfaq.com
//Support Newsgroup: news://support.dwfaq.com/support
	var obj,args=dwfaq_ToggleOMaticClass.arguments;document.MM_returnValue=(typeof(args[0].href)!='string')?true:false;
	for(var i=1;i<args.length-1;i+=2){obj=document.getElementById(args[i]);
		if(obj){if(!obj.dwfaq_OC){obj.dwfaq_OC=(obj.className=='')?true:obj.className;}
			if(obj.dwfaq_OC&&obj.className==args[i+1]){
				(obj.dwfaq_OC==true)?obj.className='':obj.className=obj.dwfaq_OC;}
			else{obj.className=args[i+1];}}}
}
//-->

function tmt_winOpen(u,id,f,df){
	if(eval(id)==null||eval(id+".closed")){
	eval(id+"=window.open('"+u+"','"+id+"','"+f+"')");eval(id+".focus()");}
	else if(df){eval(id+".focus()");}
	else{eval(id+"=window.open('"+u+"','"+id+"','"+f+"')");eval(id+".focus()");}
}