<!--

var strEmailString = "";

function AddParamToURL(strLoc,strParam){
var i = strLoc.lastIndexOf("?");
if(strLoc.indexOf(strParam, i) >= 0)
return strLoc;
				
strLoc += ((i >= 0) && (i > strLoc.lastIndexOf("/"))) ? "&" : "?";
return strLoc + strParam;
}

function GetContentWnd(){ return parent; }	

function OnEmail(){
var oWnd = 	GetContentWnd();
var oDoc = oWnd.document;
var oDescription = oDoc.getElementById("Description");
var strDescription = ( (oDescription == null) || (oDescription.content == "") ) ? oDoc.title : oDescription.content;	
if( oDoc.title == "" )
oWnd.location.href = "mailto:?body="+BuildEmailDescription(strDescription, AddParamToURL(oWnd.location.href, strEmailString));
else
oWnd.location.href = "mailto:?subject="+escape(oDoc.title)+"&body="+BuildEmailDescription(strDescription, AddParamToURL(oWnd.location.href, strEmailString));
return true;
}
function BuildEmailDescription(strDescription,hRef){
return escape("I found this on Offtek.co.uk that I think you should check out:" + String.fromCharCode(13) + String.fromCharCode(13) + strDescription + String.fromCharCode(13) + "Link: " + hRef + String.fromCharCode(13) + String.fromCharCode(13) + "Need FLASH memory?" + String.fromCharCode(13) + "Offtek has that, too!" + String.fromCharCode(13) + "www.offtek.co.uk");
}
-->

