function getUrlVars() 
{
	var url = {};
	var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
		url[key] = value;
	});
	return url['ProductCode'];
}

var prodCode = getUrlVars();
var collection = document.getElementsByTagName('li');
for(var i=0; i<collection.length; i++)
{
	text = collection[i].innerHTML;
	if (text.search("the following item is currently out of stock") >=0 ){
		text = text + "<b><br>If you would like to be notified when this item is available, <a href='/Email_Me_When_Back_In_Stock.asp?ProductCode=" + prodCode +"'>click here</a>.</b>";
		collection[i].innerHTML = text; 
		
	}
}

var collection = document.getElementsByTagName('a');
url = document.location.href; 

	for(var i=0; i<collection.length; i++)
	{
		text = collection[i].innerHTML;
		if (text.search("Email me when Back-In-Stock") >=0 )
		{
			text = "<img style='display: block; position: absolute; margin-left: 44px;' src='/v/vspfiles/assets/images/icon_exclamation.gif' alt='Free Shipping' />" + text;
			collection[i].innerHTML = text; 
		}
	}

	/**
	var page = location.href.substring(location.href.lastIndexOf('/')+1);
	prodCode = page.replace(".htm", "");
	
	for(var i=0; i<collection.length; i++)
	{
		text = collection[i].innerHTML;
		if (text.search("the following item is currently out of stock") >=0 ){
			text = text + "<b><br>If you would like to be notified when this item is available, <a href='/Email_Me_When_Back_In_Stock.asp?ProductCode=" + prodCode +"'>click here</a>.</b>";
			collection[i].innerHTML = text; 
			
		}
	}
	**/

