function clearBox(box) {
 if(box.value==box.defaultValue) {
   box.value = "";
  }
 }

function login() {
document.writeln("User Login Required:<br><br>");
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"dbr-tab2\" width=\"523\">");
document.writeln("<tr>");
document.writeln("<td width=\"18\">&nbsp;</td>");
document.writeln("<td width=\"505\">");
document.writeln("<form method=\"POST\" action=\"cp.asp\" class=\"pf\">");
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"95%\" id=\"AutoNumber1\">");
document.writeln("<tr>");
document.writeln("<td>");
document.writeln("<input type=\"text\" name=\"username\" size=\"20\" value=\"username\" class=\"sel4\" onFocus=\"clearBox(this);\"></td>");
document.writeln("<td>");
document.writeln("<input type=\"text\" name=\"password\" size=\"20\" value=\"password\" class=\"sel4\" onFocus=\"clearBox(this);\"></td>");
document.writeln("<td align=\"right\">");
document.writeln("<input type=\"submit\" value=\"login\" name=\"login\" style=\"color: #F9DFE1; font-weight: bold; font-size: 11px; border: 1px solid #990000; background-color: #990000\"></td>");
document.writeln("</tr></table></form></td></tr></table>");
}

function logout() {
document.writeln("<form name=\"logout\" method=\"post\" action=\"logout.asp\" class=\"loginform\">");
document.writeln("Welcome back <strong><% Response.Write Session(\"username\") %></strong>&nbsp;");
document.writeln("<input name=\"submit\" type=\"image\" src=\"gfx/logout.gif\" align=\"absmiddle\" width=\"54\" height=\"20\" border=\"0\">");
document.writeln("</form>");
}

var bookmarkurl = "http://www.lingeriea2z.co.uk/";
var bookmarktitle = "Buy Lingerie Online";

function addbookmark() {
if (document.all) window.external.AddFavorite(bookmarkurl, bookmarktitle);
}

