<!--
        // Set the path for the cookie to access
        // Richard - this wants to point to your root directory (the one that contains
        // dummy-eform and ImageScript files)
	// var pathString = "; path=/nfs/user/masonnjj/html/Richards/131299/ImgForm/";

function convertToDollars(sterlingValue)
{
	
	var exchangeRate = 1.62;
	var SterlingText = 0.00;
	var dollarValue = 0.00;
	dollarValue = eval(parseFloat(sterlingValue * exchangeRate));
	return fix(dollarValue);
	return dollarValue;
	
}
function fix(num) {
 string = "" + num;
 if (string.indexOf('.') == -1)
  return string + '.00';
 seperation = string.length - string.indexOf('.');
 if (seperation > 3)
  return string.substring(0,string.length-seperation+3);
 else if (seperation == 2)
  return string + '0';
  return string;
}




var pathString = "; path=/";
function SetCookie(ImgTitle, ImgRef)
{
        /*      The cookie must be set up in the correct order:
        *       name
        *       value
        *       expiry date
        *       path
        *       domain
        *       secure
        *
        *       The preceding attributes must be added to the cookie even
        *       if they are not required
        *       e.g. If secure was to be set, by the expiry, path and domain
        *       didn't matter then use 'null' for those unrequired attributes
        */

        // Set the expiry data for the cookie
        var expString = ""; // Cookie will expire at end of session

        // Create the cookie
        document.cookie="TheBasket=["+ImgTitle+"|"+ImgRef+"]" + expString + pathString;
}

function ShowCookie(form)
{
        form.display.value = document.cookie;
}

function ClearCookie()
{
        // Removes the cookie by setting the expiration 3 days in the past
        var ThreeDays = 2*24*60*60*1000;
        var expDate = new Date();
        expDate.setTime = (expDate.getTime() - ThreeDays);

        // The path must match that when the cookie was originally set

        document.cookie="TheBasket=ImOutOfHere; expires=" + expDate.toGMTString() + pathString;
}
//-->