// JavaScript Document

function addToWishlist(pageID,pageName,imgLoc)
{
pageName = pageName.replace("&","and");
var strLocation = "http://ydesigns.biz/tools/wishlist/shoplist/addlist.php?"+
				  "storeID=focusedtechnology&pageID="+pageID+"&pageName="+pageName+"&imgLoc="+imgLoc;
var focusedtechnologypopup = window.open(strLocation,"focusedtechnologypopup","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=305,height=540");
focusedtechnologypopup.focus();
}
function openPopup(popupID)
{	var strLocation='http://ydesigns.biz/tools/wishlist/shoplist/';
	if(popupID=='lostpassword')
	{	var strLocation=strLocation + 'releasepass.php';	}
	else if(popupID=='newuser')
	{	var strLocation=strLocation + 'join.php';	}
	else if(popupID=='signin')
	{	var strLocation=strLocation + 'member.php';	}
	else if(popupID=='tellfriends')
	{	var strLocation=strLocation + 'notify.php';	}
	else if(popupID=='wishlist')
	{	var strLocation=strLocation+ 'showlist.php';	}
    strLocation = strLocation + "?storeID=focusedtechnology";
	var focusedtechnologypopup = window.open(strLocation,"focusedtechnologypopup","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=305,height=540");
    focusedtechnologypopup.focus();
	}
  function emailPage()
  {
      eval("window.open('http://www.ydesigns.biz/tools/email-a-friend/?storename=focusedtechnology&theURL="+window.location+"','email_popup','menubar=no,scrollbars=no,width=500,height=420')");  
  }
function readReviews(itemID,itemImage,itemName)
{
	eval("var reviewpopup = window.open('http://ydesigns.biz/focusedtechnology/reviews/index.php?ID="+itemID+"&itemImage="+itemImage+"&itemName="+itemName+"','review_popup','menubar=no,scrollbars=1,width=500,height=420')");
	reviewpopup.focus();
}
function writeReviews(itemID,itemImage,itemName)
{
	eval("var reviewpopup = window.open('http://ydesigns.biz/focusedtechnology/reviews/write.php?ID="+itemID+"&itemImage="+itemImage+"&itemName="+itemName+"','review_popup','menubar=no,scrollbars=1,width=500,height=420')");
	reviewpopup.focus();
}

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>Focused Technology</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('</bo'+'dy></ht'+'ml>');
  popWin.document.close();
  popWin.moveTo(50,50);
  }

function getquote(itemname,itemprice,itemsale,itemid,itemcode)
  {
  var popWin = window.open('','','toolbar=0, location=0,status=0,menubar=0,resizable=0,scrollbars=1,width=350,height=470');
  popWin.document.open();
  popWin.document.write('<ht'+'ml><he'+'ad><ti'+'tle>Focused Technology</tit'+'le></he'+'ad><bo'+'dy>');
  popWin.document.write('<font face=Arial,helvetica size=2><font color="#264363"><B>Item to quote: '+itemname+'</font></b><BR><BR>By entering your email address and submitting. We will quote you the best price for the day, through email, by one of our sales associate.<BR><BR>All we need from you, is a valid email address to send your sales quote. The quote is valid the for the date that the quote is returned from our sales department.<BR><BR><Table Border="0" cellpadding="0" cellspacing="0"><tr><td height=1><form action="https://www.ydesigns.biz/focusedtechnology/getquotetest.asp" method=post><input type=hidden value="'+itemid+'" name="ItemID"><input type=hidden value="'+itemcode+'" name="Code"><input type=hidden value="'+itemprice+'" name="Price"><input type=hidden value="'+itemsale+'" name="SalePrice"><input type=hidden value="'+itemname+'" name="ItemName"></td></tr><tr><td><font face=Arial,helvetica size=2>Name: </font></td><td><input style="width:130px; height:19px; font-size:9pt;" type=text size=11 maxlength=256 name="nam"></td></tr><tr><td><font face=Arial,helvetica size=2>Email Address: </font></td><td><input style="width:130px; height:19px; font-size:9pt;" type=text size=11 maxlength=256 name="Email"></td></tr><tr><td height=5></td><td></td></tr><tr><td><font face=Arial,helvetica size=2>Quantity: </font></td><td><input style="width:45px; height:19px; font-size:9pt;" type=text size=11 maxlength=256 name="Quantity" value="1"></td></tr><tr><td height=15></td><td></td></tr><TR><td valign=middle colspan=2><input TYPE=image src="https://www.ydesigns.biz/focusedtechnology/getquotebutton.jpg" border=0></td></tr><TR><TD height=1></form></td></tr></table><font face="Arial,helvetica" size=1>Your subimission of your email address is only for a quote. Your email address will not be used for anything else.</font>');
  popWin.document.write('<br><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('</bo'+'dy></ht'+'ml>');
  popWin.document.close();
  popWin.moveTo(50,50);
  }
