var win = null;
function shippingDate(mypage,w,h){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable'
	win = window.open(mypage,'',settings)
}

function sendToFriend(account){
	var newwindow = "http://hosting.solidcactus.com/sendtofriend/new/solidcactus-sendtofriend.asp?showpoweredby=&url=" + escape(window.location) + "&store=" + escape(account) + "&imageref=" + escape(imref) + "&itemname=" + escape(itemname);
	var window_properties = "top=0,left=0,scrollbars=yes,width=650,height=575";
	var Window = window.open(newwindow,"sendtofriend",window_properties);
}

function makeWin(imsrc, ww, wh) {
	ww=ww+25; wh=wh+50;
	w1=window.open('','w1','width='+ww+',height='+wh+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
	w1.document.open();
	w1.document.write("<html><head><title>Image Zoom<\/title><META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"><META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\"><\/head>");
	w1.document.write("<body bgcolor='#FFFFFF' text='#000000' leftmargin=2 topmargin=10><p align=center>");
	w1.document.write("<img name=theimg src=" + imsrc + "><br>");
	w1.document.write("<a href=\"javascript:window.close();\"><font size=1 face=tahoma color=#000000>close window<\/font><\/a><\/body><\/html>");
	w1.document.focus();
}
