function WhatIfShort()
{
window.open('/IfShort.htm','IfShort','scrollbars=yes,resizable=no,width=490,height=400,menubar=no,status=no,toolbar=no,location=no,directories=no');
}
function darkback()
{
self.document.body.bgColor = "#000000";
self.document.body.fgColor = "#ffffff";
}
function lightback()
{
self.document.body.bgColor = "#ffffff";
self.document.body.fgColor = "#000000";
}
function ShowPic(pic, wide, high)
{
window.open(pic,'_blank','scrollbars=yes,resizable=no,width=' + (wide+32) +',height=' + (high+32) + ',menubar=no,status=no,toolbar=no,location=no,directories=no');
}
function ShareableURL(addy)
{
var StripURL = /(\/cgi-local\/SoftCart.exe|\?.*$)/g;
var GoodURL = new String();
// "" included so that the replace method will not change window.location
GoodURL = "" + addy;
var GU = GoodURL.replace(StripURL, "");
return GU;
}
function ToDelicious()
{
var Loc = new String();
Loc = window.location;
var FixedURL = ShareableURL(Loc);
window.open('http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(FixedURL)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400');
return;
}
function ToMyWeb()
{
var Loc = new String();
Loc = window.location;
var FixedURL = ShareableURL(Loc);
window.open('http://myweb.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(FixedURL)+'&ei=UTF-8','popup','width=550px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);
return;
}
function ToWists(image)
{
var Loc = new String();
Loc = window.location;
var FixedURL = ShareableURL(Loc);
window.open('http://wists.com/r.php?c=null&r=' + encodeURIComponent(FixedURL) + '&u=http%3A%2F%2Fwww.virginiaquilter.com%2Fonline-store%2Fscstore%2F' + encodeURIComponent(image) + '&title=' + encodeURIComponent(document.title),'popup','width=550px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);
return;
}
function TestShareableURL()
{
var Loc = new String();
Loc = window.location;
var FixedURL = ShareableURL(Loc);
alert (FixedURL);
return;
}
function ToMail()
{
var Loc = new String();
Loc = window.location;
var FixedURL = escape(ShareableURL(Loc));
window.location = "mailto:?subject=Found at The Virginia Quilter&body=" + FixedURL + "%0D%0D";
}
function MakePermalink()
{
var Loc = new String();
Loc = window.location;
var FixedURL = ShareableURL(Loc);
document.write('permalink');
}
function MakeSuggestion(SKU, Upsell, CartNum)
{
if ( (Upsell != " ") && (Upsell != "") && (CartNum != "") ) {
document.write('You may also like:');
document.write('');
}
}