function validateEmail()
{
  bademail = false;
  x = document.form2;
  
  emailLength = x.email.value.length;
  
  if (emailLength < 5) // email is too short, minimum should be: a@b.c
  {
	bademail=true;
  }
  else
  {
    for (i=0;i<emailLength;i++) // a search for invalid characters in the email address
    {
		var chrCheck;
    	chrCheck = x.email.value.charCodeAt(i);
   		if (i == 0)
   		{
			if (((chrCheck < 64) || (chrCheck > 90)) && ((chrCheck < 97) || (chrCheck > 122)) && ((chrCheck < 48) || (chrCheck > 57)))
				bademail=true;
		}
		if (i == emailLength)
		{
			if (((chrCheck < 64) || (chrCheck > 90)) && ((chrCheck < 97) || (chrCheck > 122)) && ((chrCheck < 48) || (chrCheck > 57)))
				bademail=true;
		}
		if ((i != 0) && (i != emailLength))
		{
			if (((chrCheck < 64) || (chrCheck > 90)) && ((chrCheck < 97) || (chrCheck > 122)) && ((chrCheck < 48) || (chrCheck > 57)) && (chrCheck != 45) && (chrCheck != 46) && (chrCheck != 95))
	   			bademail=true;
		}
    }

    at=x.email.value.indexOf("@");
    dot=x.email.value.indexOf(".");
    if ((at == -1) || (dot == -1))  // if didn't enter "@" or ".",
		bademail = true;
	else
	{
		if ((at == 0) || (dot == 0) || (at == (emailLength-1)) || (dot == (emailLength-1))) // if either "." or "@" is at the beginning or very end of the email address
			bademail = true;
		else
		{
			if (at > dot) // "." character appears before "@"
				bademail = true;
			if (at+1 == dot) // "." follows "@" immediately ->  "@."
				bademail = true;
		}
	}
  }
  
  if (bademail == true)
  {
	alert("Please enter a valid e-mail address.");  //will aleart the user,
    return false;  //and return false so the form won't submit a value.
  }
  else
  {
    return true;
  }

}

function openUnsubscribe()
{
  window.open("nl-unsubscribe.htm","my_new_window","width=450,height=136,top=200,left=150")
}

function openHolidayOnline()
{
  window.open("holidayseason.htm","SKM","width=552,height=430,top=200,left=150,scrollbars=yes")
}

function openHolidayRetail()
{
  window.open("holidayseason2.htm","SKM","width=552,height=430,top=200,left=150,scrollbars=yes")
}

function menuLightOn(menuItem)
{
  if(document.all)
  {document.all(menuItem).style.backgroundColor="#0078FF"}

  else if(!document.all && document.getElementById)
  {document.getElementById(menuItem).style.backgroundColor="#0078FF"}

}

function menuLightOff(menuItem)
{
  if(document.all)
  {document.all(menuItem).style.backgroundColor="#FFB400"}

  else if(!document.all && document.getElementById)
  {document.getElementById(menuItem).style.backgroundColor="#FFB400"}
}
document.write("         <TD class=space6 WIDTH=140 bgcolor=white VALIGN=TOP>&nbsp;")
document.write("			           <!--- LEFT TERMINAL - SEARCH NOW --->")
document.write("						<br><a href=help-shippinginformation-01.htm><img src=images/free_sh.gif border=1></a>")
document.write("			           <CENTER><br><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=131>")
document.write("			           <TR><TD VALIGN=TOP><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=95%><form action=searchA.asp method=POST id=form1 name=form1>")
document.write("			           <TR><TD VALIGN=TOP>")
document.write("			            <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>")
document.write("			            <TR><TD WIDTH=130 class=space6 bgcolor=#ff1a40 height=8><SPAN class='blackw9content'><b>&nbsp;SEARCH</b></TD></TR></TABLE></TD></TR>")
document.write("			           <TR><TD BGCOLOR=#ededed>")
document.write("			                   <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH=100% ALIGN=CENTER>")
document.write("			                   <TR><TD WIDTH=100%><input type=text name=searchtext style='font-face:arial; font-size:10px; height:20; width:95px;'><BR><select size=1 name=cata class=selectmenu><BR>")
document.write("				<option value=BOOKS>Books</option>")
document.write("				<option value=VIDEOS>Videos</option>")
document.write("				<option value=FIGURES>Figures</option>")
document.write("				<option value=MDSE>Mdse</option></select><input type=image name=submit.update value=Submit border=0 src='images/go.gif' align='absmiddle'></CENTER></SPAN></TD></TR></form></TABLE>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% BGCOLOR=#D1D1D1>")
document.write("			               <TR><TD class=space6 VALIGN=BOTTOM><img src='images/leftterminal-search-bottombar.gif'></TD></TR></TABLE></TD></TR></TABLE></TD>")
document.write("			               <TD BGCOLOR=#676767 valign=top><IMG SRC='images/leftterminal-search-sidebar.gif' height=65></TD></TR></TABLE>")

document.write("			           <!--- LEFT TERMINAL - QUICK LINK...--->")
document.write("			           <BR><CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=131>")
document.write("			           <TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=95%>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>")
document.write("			               <TR><TD bgcolor=#ff1a40 WIDTH=* class=blackw9content class=space6 height=8><B>&nbsp;QUICK LINK</B></TD></TR></TABLE></TD></TR>")
document.write("			           <TR><TD BGCOLOR=#ededed>")

document.write("			                   <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH=100% ALIGN=CENTER>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='pl-videos-.asp?type1=liveaction'>Live Action DVD</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='books-l2-.asp?code=manga'>Manga Book</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='mdse-l2-plush.asp'>Plush doll</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='mdse-l2-key.asp'>Keychain</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='pl-mdse-.asp?type1=bag'>Bag/Back pack</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='pl-mdse-.asp?type1=accs'>Apparel</a></TD></TR></TABLE>")
document.write("			                       ")
document.write("			                   </CENTER></TD></TR>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% BGCOLOR=#D1D1D1>")
document.write("			               <TR><TD class=space6 VALIGN=BOTTOM><img src='images/leftterminal-search-bottombar.gif'></TD></TR></TABLE></TD></TR></TABLE></TD>")
document.write("			               <TD BGCOLOR=#676767 valign=top><IMG SRC='images/leftterminal-search-sidebar.gif' height=70></TD></TR></TABLE>")


document.write("			           <!--- LEFT TERMINAL - SERVICES...--->")
document.write("			           <BR><CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=131>")
document.write("			           <TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=95%>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>")
document.write("			               <TR><TD bgcolor=#ff1a40 WIDTH=* class=blackw9content class=space6 height=8><B>&nbsp;SERVICES</B></TD></TR></TABLE></TD></TR>")
document.write("			           <TR><TD BGCOLOR=#ededed>")

document.write("			                   <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH=100% ALIGN=CENTER>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='http://cgi6.ebay.com/ws/eBayISAPI.dll?ViewSellersOtherItems&include=0&userid=sakuramedia&sort=3&rows=25&since=-1&rd=1' target='NEW'>eBay</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='http://www.sakuramedia.com/website04/forum/' target='NEW'>Forum</a></TD></TR></TABLE>")
document.write("			                       ")
document.write("			                   </CENTER></TD></TR>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% BGCOLOR=#D1D1D1>")
document.write("			               <TR><TD class=space6 VALIGN=BOTTOM><img src='images/leftterminal-search-bottombar.gif'></TD></TR></TABLE></TD></TR></TABLE></TD>")
document.write("			               <TD BGCOLOR=#676767 valign=top><IMG SRC='images/leftterminal-search-sidebar.gif' height=60></TD></TR></TABLE>")

document.write("			           <!--- LEFT TERMINAL - COMPANY...--->")
document.write("			           <BR><CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=131>")
document.write("			           <TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=95%>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>")
document.write("			               <TR><TD bgcolor=#ff1a40 WIDTH=* class=blackw9content class=space6 height=8><B>&nbsp;COMPANY</B></TD></TR></TABLE></TD></TR>")
document.write("			           <TR><TD BGCOLOR=#ededed>")

document.write("			                   <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH=100% ALIGN=CENTER>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='help.htm'>Help</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<font color=gray>FAQ</font></a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='enquiries.htm'>Enquiries</a></TD></TR>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10'>&nbsp;&nbsp;&nbsp;<a href='aboutus.htm'>Store Info</a></TD></TR></TABLE>")
document.write("			                       ")
document.write("			                   </CENTER></TD></TR>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% BGCOLOR=#D1D1D1>")
document.write("			               <TR><TD class=space6 VALIGN=BOTTOM><img src='images/leftterminal-search-bottombar.gif'></TD></TR></TABLE></TD></TR></TABLE></TD>")
document.write("			               <TD BGCOLOR=#676767 valign=top><IMG SRC='images/leftterminal-search-sidebar.gif' height=70></TD></TR></TABLE>")


document.write("			           <!--- LEFT TERMINAL - NEWSLETTER--->")
document.write("			           <BR><CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=131>")
document.write("			           <TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=95%><FORM action='nl-process.asp' method='POST' class='form2' name='form2' onsubmit='return validateEmail()'><INPUT TYPE='HIDDEN' NAME='action' value='subscribe'>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>")
document.write("			               <TR><TD WIDTH=* class=blackw9content bgcolor=#ff1a40 height=8><B>&nbsp;NEWSLETTER</B></TD></TR></TABLE></TD></TR>")
document.write("			           <TR><TD BGCOLOR=#ededed>")

document.write("			                   <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH=100% ALIGN=CENTER>")
document.write("			                   <TR><TD WIDTH=100%><SPAN class='blackw9content'><font color=black>Enter your e-mail:</font><BR><CENTER><input type='text' name='email' length='14' style='font-face:arial; font-size:10px; height:20; width:95px;'><input type=image name=submit.update value=Submit border=0 src='images/go.gif' align='absmiddle'>")
document.write("			</CENTER></SPAN></TD></TR></form></TABLE>")
document.write("			                       ")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% BGCOLOR=#D1D1D1>")
document.write("			               <TR><TD class=space6 VALIGN=BOTTOM><img src='images/leftterminal-newsletter-bottombar.gif'></TD></TR></TABLE></TD></TR></TABLE></TD>")
document.write("			               <TD BGCOLOR=#676767 valign=top><IMG SRC='images/leftterminal-newsletter-sidebar.gif'></TD></TR></TABLE>")
document.write("<!-- <IMG SRC='images/leftterminal-weaccept.gif'> -->")

document.write("			           <!--- LEFT TERMINAL - PAYMENT...--->")
document.write("			           <br><CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=131>")
document.write("			           <TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=95%>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>")
document.write("			               <TR><TD bgcolor=#ff1a40 WIDTH=* class=blackw9content class=space6 height=8><B>&nbsp;WE ACCEPT</B></TD></TR></TABLE></TD></TR>")
document.write("			           <TR><TD BGCOLOR=#ededed>")

document.write("			                   <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH=100% ALIGN=CENTER>")
document.write("			                   <TR><TD WIDTH=100% CLASS='blackw10' align=center><IMG SRC='images/leftterminal-weaccept2.gif'></TD></TR></TABLE>")
document.write("			                       ")
document.write("			                   </CENTER></TD></TR>")
document.write("			           <TR><TD>")
document.write("			               <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% BGCOLOR=#D1D1D1>")
document.write("			               <TR><TD class=space6 VALIGN=BOTTOM><img src='images/leftterminal-search-bottombar.gif'></TD></TR></TABLE></TD></TR></TABLE></TD>")
document.write("			               <TD BGCOLOR=#676767 valign=top><IMG SRC='images/leftterminal-search-sidebar.gif' height=70></TD></TR></TABLE>")

