//<!--
var preloadFlag = false;  //DEBUG ONLY

//The below works fine for netscape v4 and Explorer !
var runScript;

function countClick(advertiserID,pageID,targetURL,fileName)
{
	var srcStr;

	srcStr = "countClick.asp?advertiserID=" + advertiserID + "&pageID=" + pageID + "&targetURL=" + targetURL + "&fileName=" + fileName;
	srcStr = srcStr + "&random=" + Math.random();  //force reload
	runScript = new Image();
	runScript.src = srcStr;			//as soon as assigned, the script will be called
}

function countShopClick(hireShopID,clickType)
{
	var srcStr;

	srcStr = "countShopClick.asp?hireShopID=" + hireShopID + "&clickType=" + clickType;
	srcStr = srcStr + "&random=" + Math.random();  //force reload
	runScript = new Image();
	runScript.src = srcStr;			//as soon as assigned, the script will be called

}

function newImage(arg) 
{
	//if (document.images) 
	//{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	//}
}

function preloadImages() 
{

	//if (document.images) 
	//{
		img_1 = newImage("b-home-blue.gif");
		img_2 = newImage("b-search-blue.gif");
		
		img_3 = newImage("b-msearch-blue.gif");
		img_4 = newImage("b-uk-white.gif");
		img_5 = newImage("b-ire-white.gif");
		img_6 = newImage("b-usa-white.gif");
		img_7 = newImage("b-can-white.gif");
		img_8 = newImage("b-aus-white.gif");

		img_9 = newImage("b-suppliers-blue.gif");
		img_11 = newImage("b-add-blue.gif");
		img_12 = newImage("b-enhance-blue.gif");
		img_13 = newImage("b-stats-blue.gif");
		img_17 = newImage("b-smap-blue.gif");
		img_14 = newImage("b-advert-blue.gif");
		img_15 = newImage("b-aboutus-blue.gif");
		img_16 = newImage("b-contact-blue.gif");
		img_17 = newImage("b-help-blue.gif");

		img_18 = newImage("b2-amend-blue.gif");
		img_19 = newImage("b2-cancel-blue.gif");
		img_20 = newImage("b2-delete-blue.gif");
		img_22 = newImage("b2-save-blue.gif");
		img_23 = newImage("b2-ok-blue.gif");

		img_24 = newImage("b2-enter-red.gif");

		img_25 = newImage("b-links-blue.gif");

		preloadFlag = true;
	//}

}

function changeImages(imageName, newImageSrc) 
{
	if (document.images && (preloadFlag == true)) 
	{				
		document[imageName].src = newImageSrc;	
	}
}

function writeEmail()
{      	   
	var subject='Website Query';
	var body="Dear ,";

	/* Notice this is URL encoding like a query string */
	self.location="mailto:menswear-hire.co.uk?subject="+subject +"&body="+body;
}

function writeEmail(address,name,subject)
{      	   
	var body="Hi "+ name +",";

	/* Notice this is URL encoding like a query string */
	self.location="mailto:"+address+"?subject="+subject +"&body="+body;
}				

function writeEmailHireShop(address,subject)
{      	   
	/* Notice this is URL encoding like a query string */
	self.location="mailto:"+address+"?subject="+subject;
}

function writeAlanEmail(subject)
{      	   
	//var body="Hi "+ name +",";
	var address = "alan" + "@" + "suithireshops" + "." + "c" + "om"

	/* Notice this is URL encoding like a query string */
	self.location="mailto:"+address+"?subject="+subject;
}

function writeRossEmail(subject)
{      	   
	//var body="Hi "+ name +",";
	var address = "ross" + "@" + "suithireshops" + "." + "c" + "om"

	/* Notice this is URL encoding like a query string */
	self.location="mailto:"+address+"?subject="+subject;
}

// -->