<!-- hide from JavaScript-challenged browsers
function openthawtecert()
	{
	thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USTRAD158-1','anew',config='height=510,width=520,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
	}

function listitems(s3)
	{
	var s1="";
	var s2="";
	s1=s3.toLowerCase();
	for (i=0; i<s1.length; ++i)
		{
		if ((s1.charCodeAt(i)>=48 && s1.charCodeAt(i)<=57) || (s1.charCodeAt(i)>=97 && s1.charCodeAt(i)<=122))
			s2=s2 + s1.charAt(i);
		else
			s2=s2 + "0x" + s1.charCodeAt(i) + ";";
		}
	window.location="ItemList.asp?ILT=9&ILQ=" + s2;
//	return (ILT=9&ILQ=" + s2 + "&UIA=" + uiav);
	}

function openaltviews(avurl, widthval, toppos, heightdivisor)
	{
	leftpos = (screen.width) ? (screen.width - widthval) / 2 : 100;
	heightval = (screen.height) ? (screen.height) / heightdivisor : 100;
	winfeatures = 'height=' + heightval + ',width=' + widthval + ',top=' + toppos + ',left=' + leftpos + ',scrollbars=1,location=0,directories=0,status=0,menubar=0,toolbar=0,resizable=1,dependent=1'
	popupWin = window.open(avurl, 'altviews', winfeatures);
	popupWin.focus();
	}

function openhelp (helpurl)
	{
	widthval = 640
	heightval = 800
	leftpos = (screen.width) ? (screen.width - widthval) / 2 : 100;
	toppos = (screen.height) ? (screen.height - heightval) / 2 : 100;
	winfeatures = 'height=' + heightval + ',width=' + widthval + ',top=' + toppos + ',left=' + leftpos + ',scrollbars=1,location=0,directories=0,status=0,menubar=0,toolbar=0,resizable=1,dependent=1'
	popupWin = window.open(helpurl, 'helpwin', winfeatures);
	popupWin.focus();
	}

function cleandatafield(fld)
	{
	var x;
alert("here");
	fldid=fld.name;
	x=document.getElementById(fldid);
	if (x != null)
		{
		t=x.value;
		t.replace("%0D%0A","");
		t.replace("%0D","");
		t.replace("%0A","");
		t.replace("\r","");
		t.replace("\n","");
		t.replace("\r\n","");
		}
	}

function updatethemedd()
	{
	var x=document.getElementById("StyleSel");
	var d;
	var s;
	if (x != null)
		{
		d=document.getElementById("descThemesel");
		s=document.getElementById("ThemeSel")
		if (x.value == "25")
			{
			d.style.visibility="visible";
			s.style.visibility="visible";
			}
		else
			{
			d.style.visibility="hidden";
			s.value="0";
			s.style.visibility="hidden";
			}
		}
	}

function showmenu(elmntid)
	{
	var i;
	var e;
	var s;
	var x=document.getElementById(elmntid);
	if (document.forms[0] != null)
		{
		for (i=0; i<document.forms[0].length; ++i)
			{
			e=document.forms[0].elements[i];
			s=e.type;
			s=s.toLowerCase();
			if (s.indexOf("select") > -1)
				{
				s = e.name;
				if ((elmntid == "help" && s == "ILSRTSel") || (elmntid == "padultack" && s == "ColorSel") || (elmntid.charAt(0) == 'p' && (s == "DesignerSel" || s == "ThemeSel")) || (elmntid.charAt(0) == 'b' && (s == "bCountryID" || s =="bShippingMethod")))
					e.style.visibility="hidden";
				}
			}
		}
	x.style.visibility="visible";
	x.refresh();
	}

function hidemenu(elmntid)
	{
	var i;
	var x=document.getElementById(elmntid);
	var e;
	var s;
	var d;
	if (document.forms[0] != null)
		{
		for (i=0; i<document.forms[0].length; ++i)
			{
			e=document.forms[0].elements[i];
			s=e.type;
			s=s.toLowerCase();
			if (s.indexOf("select") > -1)
				{
				if (e.id == "ThemeSel")
					{
					d=document.getElementById("descThemeSel");
					if (d != null)
						{
						e.style.visibility=d.style.visibility;
						}
					else
						{
						e.style.visibility="visible";
						}
					}
				else
					{
					e.style.visibility="visible";
					}
				}
			}
		}
	x.style.visibility="hidden";
	}

vVer  = parseInt(navigator.appVersion)
vNS = navigator.appName=="Netscape"
vIE = navigator.appName=="Microsoft Internet Explorer"

function norcl(evnt)
	{
/*	var msg;
	msg = "This image is the property of TheLingerieConnection.net or one of our suppliers, please do not distribute these images.";
	if (vNS && evnt.which > 1)
		{
		alert(msg);
		return false;
		}
	else if (vIE && (event.button >1))
		{
		alert(msg);
		return false;
		}
*/	}

document.onmousedown = norcl;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (vNS && vVer<5) window.onmousedown = norcl;
//window.onmousedown=norcl;

function stopRKey(evt)
	{
	var evt  = (evt) ? evt : ((event) ? event : null);
	var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
	if ((evt.keyCode == 13) && (node.type=="text"))
		{
		return false;
		}
	}
document.onkeypress = stopRKey;

// finished hiding -->
