var isNS = (navigator.appName == "Netscape");

function InputField(fType,fName,fValue,fSize,fMaxLength,fAttribute){
	fType==null || fType==""? fType="text" : fType=" type=\"" + escapeHTML(fType) + "\""
	fName==null || fName=="" ? fName="":fName=" name=\""+ escapeHTML(fName) + "\""
	fValue==null || fValue==""? fValue="":fValue=" value=\""+ escapeHTML(fValue) + "\""

	if(fSize==null || fSize=="") fSize=20
	isNS ? fSize=" size=\"" + parseInt(fSize/2) + "\"" :fSize=" size=\"" + fSize +  "\""

	fMaxLength==null ? fMaxLength="" : fMaxLength=" maxlength=\"" + fMaxLength + "\""
	fAttribute==null ? fAttribute="" : fAttribute = " " + fAttribute

	document.write("<input" + fType + fName + fValue + fSize + fMaxLength +  fAttribute + ">")
}

function showTextAreaInput(InputName, Cols, Rows){
	if (isNS){
		Cols=Cols/2;
	}
	document.write('<textarea name=' + InputName + ' cols=' +Cols+ ' rows=' +Rows+ '></textarea>');
}

function escapeHTML(Text) {
	var sEncText = Text
	regEx = /&/g; sEncText = sEncText.replace(regEx, "&amp;")
	regEx = /\"/g; sEncText = sEncText.replace(regEx, "&quot;")
	regEx = />/g; sEncText = sEncText.replace(regEx, "&gt;")
	regEx = /</g; sEncText = sEncText.replace(regEx, "&lt;")
	return sEncText
}


function showDiv(DivID) {
    if (isNS)
    	document[DivID].visibility = "visible"
    else
    	document.all[DivID].style.visibility = "visible"
}
function hideDiv(DivID) {
    if (isNS)
    	document[DivID].visibility = "hidden"
    else
    	document.all[DivID].style.visibility = "hidden"
}

function WBHeader(bc,mc,bpath,bhref)
{
document.write("<!--TOP Header Start-->")
document.write("<TABLE border=0 cellpadding=0 cellspacing=0 width=770>")
document.write("<TR>")
document.write("  <TD width=1 bgcolor=#535348 height=1 rowspan=6><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("  <TD width=768 bgcolor=#535348 height=1><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("  <TD width=1 bgcolor=#535348 height=1 rowspan=6><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("</TR>")
document.write("<TR>")
document.write("  <TD width=768 bgcolor=#E8EADA height=4><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("</TR>")
document.write("<TR>")
document.write("  <TD width=768 bgcolor=#E8EADA>")
document.write("    <TABLE border=0 cellpadding=0 cellspacing=0 width=100%>")
document.write("      <TR>")
document.write("	<TD align=center width=285><a href=../index.asp><IMG border=0 src=/shared/_lbl_logo.gif width=270 height=60></a></TD>")

var BannerParam
if (mc != null && mc != "")
	BannerParam = "mc=" + mc
else if (bc != null && bc != "")
	BannerParam = "bc=" + bc

//document.write("	<TD width=468><IMG border=0 src=../banner.asp?" + BannerParam  + "  width=468 height=60></TD>")
if (bpath == "" || bpath == null )
{
	document.write("	<TD width=468><IMG border=0 src='/shared/bannerDefault.gif' width=468 height=60></TD>")
}
else
{
	// Banner image exist
	if (bhref == "" || bhref == "#")
		document.write("	<TD width=468><IMG border=0 src=" + bpath + " width=468 height=60></TD>")
	else
		document.write("	<TD width=468><a target=blank href=" + bhref + " ><IMG border=0 src=" + bpath + " width=468 height=60></a></TD>")
}

document.write("	<TD width=12><IMG border=0 src=../images/_dgn_banneradv.gif width=12 height=60></TD>")
document.write("	<TD width=5><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("      </TR>")
document.write("    </TABLE>")
document.write("  </TD>")
document.write("</TR>")
document.write("<TR><TD bgcolor=#E8EADA height=4><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD></TR>")
//document.write("<TR><TD bgcolor=#FFFFFF height=3><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD></TR>")
//document.write("<TR><TD bgcolor=#535348 height=2><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD></TR>")
document.write("</TABLE>")
document.write("<!-- Top Header End -->")
}

function WBFooter() {
document.write("<!-- Footer Start-->")
document.write("<TABLE border=0 cellpadding=0 cellspacing=0 width=770>")
document.write("  <TR>")
document.write("    <TD width=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("    <TD width=768 bgcolor=#FFFFFF>")
document.write("	<TABLE border=0 cellpadding=0 cellspacing=0 width=100%>")
document.write("	  <TR>")
document.write("	    <TD width=100% valign=middle align=center valign=bottom  height=40 class=base10>")
document.write("		<img border=0 src=/shared/wbdot.gif> ")
document.write("		| <a href=../info/about.asp class=bottom>" + __sAbout + "</a> |")
//document.write("                        <a href=../info/news.asp class=bottom>" + __sNews + "</a> |")
document.write("		<a href=../info/help.asp class=bottom>" + __sHelp + "</a> |")
document.write("		<a href=../info/tos.asp class=bottom>" + __sTOS + "</a> |")
document.write("		<a href=../info/privacy.asp class=bottom>" + __sPrivacy + "</a> |")
document.write("		<a href=../info/disclaimer.asp class=bottom>" + __sDisclaimer + "</a> |")
document.write("		<img border=0 src=/shared/wbdot.gif> ")
document.write("	    </TD>")
document.write("	  </TR>")
document.write("	  <TR>")
document.write("	    <TD width=100% valign=middle align=center valign=top height=30 class=black8>" + __sCopyright + "</TD>")
document.write("	  </TR>")
document.write("	</TABLE>")
document.write("	</TD>")
document.write("    <TD width=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("  </TR>")
document.write("  <TR>")
document.write("    <TD width=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("    <TD width=758 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=758 height=1></TD>")
document.write("    <TD bgcolor=#535348 height=1><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("  </TR>")
document.write("</TABLE>")
document.write("<!-- Footer End -->")
}

function ProweredByFooter() {
document.write("<!-- Footer Start-->")
document.write("<TABLE border=0 cellpadding=0 cellspacing=0 width=770>")
document.write("<TR>")
document.write("	<TD width=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("	<TD width=768 bgcolor=#FFFFFF align=right>")
document.write("	<TABLE border=0 cellpadding=0 cellspacing=0>")
document.write("        <TR>")
document.write("		<TD height=20 class=black10>&nbsp;")
document.write("                	<a href=../info/about.asp class=top>" + __sAbout + "</a> |")
//document.write("                        <a href=../info/news.asp class=top>" + __sNews + "</a> |")
document.write("                        <a href=../info/help.asp class=top>" + __sHelp + "</a> |")
document.write("            	</TD>")
document.write("		<TD height=20>")
document.write("			<img src=/shared/_lbl_poweredby.gif border=0>&nbsp;")
document.write("            	</TD>")
document.write("	</TR>")
document.write("	</TABLE>")
document.write("	</TD>")
document.write("	<TD width=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("</TR>")
document.write("<TR>")
document.write("	<TD width=1 height=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("	<TD width=768 height=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("	<TD width=1 height=1 bgcolor=#535348><IMG border=0 src=/shared/_dgn_1by1.gif width=1 height=1></TD>")
document.write("</TR>")
document.write("</TABLE>")
document.write("<!-- Footer End -->")
}


function HTMLHead(title) {
if (title == null)
	title = ""
document.write("<META http-equiv=Content-Type content=\"text/html; charset=" + __sCharSet + "\">")
document.write("<TITLE>" + __sTitlePrefix + " - " + title +"</TITLE>")
document.write("<link rel=stylesheet href=\"../css/style.css\" TYPE=\"text/css\">")
}

if (window!=top)
	top.location.href=location.href;

