function printLoginBox(typeID, fURL){
	document.write("<table cellspacing=0 cellpadding=0>")
	document.write("<tr height=1><td>")

	document.write("<table cellspacing=0 cellpadding=0>")
	document.write("<tr height=21>")
	document.write("<td align=right><font class=plDescription>Username:</td>")
	document.write("<td width=3 background=/images/style/" + typeID + "/textBoxL.gif></td>")
	if (fURL == ""){
		document.write("<td background=/images/style/" + typeID + "/textBoxC.gif><form method=POST action=/login.asp>")
	} else {
		document.write("<td background=/images/style/" + typeID + "/textBoxC.gif><form method=POST action=/login.asp?type=" + typeID + "&fURL=" + fURL + ">")
	}
	
	document.write("	<input type=text class=login size=20 name=T1></td>")
	document.write("<td width=3 background=/images/style/" + typeID + "/textBoxR.gif></td>")
	document.write("</tr>")
	document.write("<tr height=21>")
	document.write("<td align=right><font class=plDescription>Password:</td>")
	document.write("<td width=3 background=/images/style/" + typeID + "/textBoxL.gif></td>")
	document.write("<td background=/images/style/" + typeID + "/textBoxC.gif>")
	document.write("	<input type=password class=login size=20 name=T2></td>")
	document.write("<td width=3 background=/images/style/" + typeID + "/textBoxR.gif></td>")
	document.write("</tr>")
	document.write("</table>")

	document.write("<tr><td><input type=checkbox name=fRememberPassword id=fRememberPassword style=\"height:15;width:14\" checked><label for=fRememberPassword class=plDescription style=\"cursor:hand;\">&nbsp;remember me</label>")
	document.write("<tr>")
	document.write("<td height=30 align=center valign=center>")
	document.write("	<input type=hidden name=fTypeID value=\"" + typeID + "\">")
	document.write("	<input type=image name=B1 src=/images/style/" + typeID + "/buttonLogin.gif>")
	document.write("</td></form>")
	document.write("</tr>")
	document.write("</table>")
}

function printMIStore(typeID, storeShortName, activated){
	t = "&nbsp;<a href=/" + storeShortName + " class=cmLink1><b>" + storeShortName + "</b></a><br>"
	if (!activated){
	t += "<a class=headerMenuItem target=pMain href=/storeActivationRequest.asp?storeID=" + typeID + " onclick=\"closeMenu()\" style=\"color:38b927; padding-top:1; padding-bottom:1; \">&nbsp;<b><img src=/images/iconExclamation.gif border=0 align=absmiddle height=16 width=16> Request Activation</b></a><br>"
	}
	t += "<a class=headerMenuItem target=pMain href=/storeItemAdd.asp?storeID=" + typeID + " onclick=\"closeMenu()\">&nbsp;Add New Item</a><br>"
	t += "<a class=headerMenuItem target=pMain href=/main.asp?edit=1&storeID=" + typeID + " onclick=\"closeMenu()\">&nbsp;Edit/Delete Items</a><br>"
	t += "<a class=headerMenuItem target=pMain href=/storeCategoryEdit.asp?storeID=" + typeID + "&edit=1 onclick=\"closeMenu()\">&nbsp;Manage Categories</a><br>"
	//t += "<a class=headerMenuItem target=pMain href=/storeSpecificationsEdit.asp?edit=1&type=" + typeID + " onclick=\"closeMenu()\">&nbsp;Manage Specifications</a><br>"
	t += "<font class=headerMenuItem style=\"color:888888\" target=pMain href=/storeSpecificationsEdit.asp?edit=1&type=" + typeID + " onclick=\"closeMenu()\">&nbsp;Manage Specifications</font><br>"
	t += "<a class=headerMenuItem target=pMain href=/storeConfigure.asp?storeID=" + typeID + " onclick=\"closeMenu()\">&nbsp;Configure Store</a><br>"
	t += "<a class=headerMenuItem target=pMain href=/storeSynchronize.asp?storeID=" + typeID + " onclick=\"closeMenu()\">&nbsp;One-time Synchronization</a><br>"
	t += "<a class=headerMenuItem target=pMain href=/storeSynchronizationSchedules.asp?storeID=" + typeID + " onclick=\"closeMenu()\">&nbsp;Synchronization Schedules</a><br>"
	return t;
}



function printFlashBanner2(banner, url){
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" ")
	document.write(" WIDTH=120 HEIGHT=40 id=banner>")
	document.write("<PARAM NAME=movie VALUE=\"/advertisements/banners/banner.swf?b=" + banner + "&url=" + url + "\">")
	document.write("<PARAM NAME=wmode VALUE=OPAQUE><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>")
	document.write("<EMBED src=\"/advertisements/banners/banner.swf?banner=" + banner + "&url=" + rl + "\" quality=high bgcolor=#FFFFFF WIDTH=120 HEIGHT=40 NAME=banner TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>")
	document.write("</OBJECT>")
}

function printFlashBanner(banner, url, cWidth, cHeight, interactive){
	if (interactive){
		//printFlash(banner, cWidth, cHeight, "banner", "OPAQUE", "");
		printFlash("/advertisements/banners/banner" + cWidth + "x" + cHeight + "i.swf?b=" + banner + "&url=" + url, cWidth, cHeight, "banner", "OPAQUE", "");
	}else{
		printFlash("/advertisements/banners/banner.swf?b=" + banner + "&url=" + url, cWidth, cHeight, "banner", "OPAQUE", "");
	}
}


function printFlash(path, cWidth, cHeight, id, wmode, objectParameters){
	document.write("<OBJECT " + objectParameters + " classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" ")
	document.write(" WIDTH=" + cWidth + " HEIGHT=" + cHeight + " id=" + id + ">")
	document.write("<PARAM NAME=movie VALUE=\"" + path + "\">")
	document.write("<PARAM NAME=wmode VALUE=" + wmode + "><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>")
	document.write("<EMBED src=\"" + path + "\" quality=high bgcolor=#FFFFFF ")
	document.write(" WIDTH=" + cWidth + " HEIGHT=" + cHeight + " NAME=" + id + " swLiveConnect=true></EMBED>")
	document.write("</OBJECT>")
}

//__________
