function changeSite()
{
  var newSite = "http://www.laurenklein.com/";
          
  var currentURL = window.location + "";
  rExp = /.+\//gi;
  var newURL = currentURL.replace(rExp, "");
  newURL = newSite + newURL;
  window.location = newURL;
}
  // only use www.laurenklein.com URL
  var currentLoc = window.location + " ";
  var RE = new RegExp(".+store.laurenklein.+","i");
  if(currentLoc.match(RE))
  {
    changeSite();
  }
  var RE = new RegExp("http://laurenklein.+","i");
  if(currentLoc.match(RE))
  {
    changeSite();
  }

function expandImage(imgLoc,imgH,imgW)
  {
imgH = imgH * 1; imgW = imgW * 1;
var X = window.screen.availHeight;
var Y = window.screen.availWidth;
X = X - 100;  Y = Y - 50;
if(X > (imgH + 90))	
{ X = (imgH + 90); }
if(Y > (imgW + 40))	
{ Y = (imgW + 40); }
if(Y<210){	Y = 210;	}
  var popWin = window.open('','','toolbar=0, location=0,status=0,menubar=0,resizable=0,scrollbars=1,width='+Y+',height=' + X);
  popWin.document.open();
  popWin.document.write('<ht'+'ml><he'+'ad><ti'+'tle>HBCU Store</tit'+'le></he'+'ad><bo'+'dy>');
  popWin.document.write('<img alt="loading expanded image... please wait..." name=mainImage src='+imgLoc+' border=0>');
  popWin.document.write('<br><br><font face=verdana,arial,helvetica size=2><b><center><a href="javascript:window.close()"><b><font color=15325A>Close Window</a>');
  popWin.document.write('</body></html>');
  popWin.document.close();
  popWin.moveTo(50,50);
  }

  function emailPage()
  {
      eval("window.open('http://www.ydesigns.biz/tools/email-a-friend/?storename=yhst-72910273821870&theURL="+window.location+"','email_popup','menubar=no,scrollbars=no,width=500,height=420')");  
  }


var pm_tagname    = "universalTag.txt";

var pm_tagversion = "1.4";

var pm_accountid  = "A8NAL5C3ER662M2B78CVG78KJ4";

var pm_scripthost = "srv.perf.overture.com";

var pm_customargs = "";

var pm_querystr = "?" + "ver=" + pm_tagversion + "&aid=" + pm_accountid + pm_customargs;

var pm_tag = "<SCR" + "IPT LANGUAGE='JavaScript' " + "SRC=//" + pm_scripthost + "/collweb/ScriptServlet" + pm_querystr + "></SCR" + "IPT>";

document.write(pm_tag);

function submitForm()
{
	var continueToSubmit = true;
	if( continueToSubmit && document.optin.OILB_EMAIL.value.length != 0 )
	{
		var emailValue = document.optin.OILB_EMAIL.value;
		if( ( emailValue.indexOf( '@' ) <= 0 ) || ( emailValue.indexOf( '.', emailValue.indexOf( '@' ) ) <= 0 ) )
	{
			continueToSubmit = false;
			alert('You must provide a valid email address.');
			document.optin.OILB_EMAIL.focus();
		}
	}
	if( continueToSubmit && document.optin.OILB_EMAIL.value.length == 0 )
	{
		continueToSubmit = false;
		alert('You must provide a value for Email.');
		document.optin.OILB_EMAIL.focus();
	}
	if( continueToSubmit )
	{
var popWin = window.open('','','toolbar=0, location=0,status=0,menubar=0,scrollbars=0,resizable=0, width=200,height=200,left=300,top=300');
 popWin.document.open();
popWin.document.write('<ht'+'ml><he'+'ad><ti'+'tle>Lauren Klein</ti'+'tle></he'+'ad><bod'+'y onload=javascript:document.optin.submit();><FORM NAME=optin METHOD=POST ACTION=http://postsnet.com/app/campaigner/services/optinlist/processoptinrequest.jsp?oilb=86561350><INPUT TYPE=HIDDEN NAME=commitcontact VALUE=true><input type=HIDDEN NAME=OILB_EMAIL Value='+document.optin.OILB_EMAIL.value+'></form>Registering....</b'+'ody></HT'+'ML>');

popWin.document.close();
  
	}
}

