var HdrUserType=3;

function dw_bs(hreflocback, hreflocsave, ncols) {
	
	if (hreflocback=="multiout") hreflocback = getwinlocsessurl(jmyref);
	if((!arguments[3]) || (!arguments[4])) 
		 document.write(mybacksavebar(hreflocback, hreflocsave, ncols)); 
	else document.write(mylinkbar(hreflocback, hreflocsave, ncols, arguments[3], arguments[4], "Rnd_rgt"))
	
	//alert(mybacksavebar(hreflocback, hreflocsave, ncols))
}

//function dw_lnk(hrefloc, linkname, linkarrow) {
//	if (!linkarrow) linkarrow = "Rnd_rgt";
//	document.write(mylink(hrefloc, linkname, linkarrow));
//}

function dw_rdt() {
	document.write("<b><font color='#FF0000'>&#149;&nbsp;</font></b>");
}

function dw_req(ncols) {
	if (!ncols) ncols = 2
	document.write(	"<tr valign='middle'><td colspan=" + ncols + "><div align='left'>{ <b><font color='#FF0000'>") 
	document.write(	"&#149; </b></font><font color='#000000'>indicates required field }</font></div></td></tr>")
}

function mybacksavebar(hreflocback, hreflocsave, ncols) {
	var mybacksavebar;
	mybacksavebar = "<tr valign=top><td colspan=" + ncols + ">" + myback(hreflocback) + mysave(hreflocsave) + "</td></tr>";
	return mybacksavebar
}

function mylinkbar(hreflocback, hreflocsave, ncols, hreflink, linkname, linkarrow) {
	var mylinkbar;
	mylinkbar = "<tr valign=top><td  colspan=" + ncols + ">" + myback(hreflocback)  + mylink(hreflink,linkname, linkarrow) + mysave(hreflocsave) + "</td></tr>";
	return mylinkbar
}

function myback(hrefloc) {
	var myback;
	myback = mylink(hrefloc, "Back", "Rnd_lft");
	return myback
}

function mysave(hrefloc) {
	var mysave;
	mysave = mylink(hrefloc, "Save", "Rnd_rgt")
	return mysave
}

function mylink(hrefloc, linkname, linkarrow) {
	var mylink="";
	if (hrefloc!="hide") {
		if (hrefloc.indexOf("'") == -1)
			mylink = getarrow(linkarrow) + "&nbsp;" + "<a href='" + hrefloc + "'>" + linkname + "</a>" + myspacer(100);
		else
			mylink = getarrow(linkarrow) + "&nbsp;" + "<a href=" + hrefloc + ">" + linkname + "</a>" + myspacer(100);
	}
	//alert("hrefloc=" + hrefloc + "linkname=" +  linkname + "linkarrow=" + linkarrow + "ml=" + mylink)
	return mylink
}

function myspacer(PixelX) {
	var myspacer;
	myspacer = "<img height=1 border=0 width=" + PixelX + " src='" + imgPath + "shim.gif'>"
	myspacer = "&nbsp;&nbsp;&nbsp;&nbsp;"
	return myspacer
}

function getarrow(linkarrow) {
	var getarrow;
	if (linkarrow=="arrowblue2") {
		getarrow = "<img src='" + imgPath + linkarrow + ".gif'>";
	} else {
		getarrow = "<img src='" + imgPath + "Arrow" + linkarrow + "_" + HdrUserType + ".gif'>";
	}
	return getarrow
}
