<!--
//var idnum = window.location.search.substring(1);
function getcookie_aff_old(cookieName) {
	var id = cookieName + "=";
	var cookievalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(id);
		if (offset != -1) {
		cookievalue = "x";
		}
	}
return cookievalue;
}

function getCookieVal_Aff (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
	endstr = document.cookie.length;  
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie_Aff (cookieName1) {  
	var arg = cookieName1 + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)      
		return getCookieVal_Aff(j);
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}

idnum=GetCookie_Aff('affiliate');
idnum_sub=GetCookie_Aff('sub_affiliate');

if(idnum_sub){
	affi_full=idnum+'_'+idnum_sub;
}else{
	affi_full=idnum;
}

if (affi_full) {
document.write('<IMG border = "0" height = "1" width = "1" src="http://www.myaffiliateprogram.com/u/1sr/t.asp?id=' + affi_full + '&p=dummy.htm">');
}
// -->