// JavaScript Document  but you're real smart, you figured that out without this inane auot generated tag


function gup( name )
		{
			//alert("Hi Lowell");
	  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	  var regexS = "[\\?&]"+name+"=([^&#]*)";
	  var regex = new RegExp( regexS );
	  var results = regex.exec( window.location.href );
	  if( results == null ){
		return "";
	  	}
	else{
		return results[1];
		}
	}


	
	function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}


	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}


	function setcookies(){
		if (gup('a').length > 1){
			createCookie('aff_iata',gup('a'),0);
			createCookie('aff_name',gup('b'),0);
			createCookie('aff_num',gup('c'),0);
			createCookie('aff_return',gup('d'),0);
			createCookie('optParam',gup('e'),0);
		}
	}
	setcookies();

	
if (gup('a').length >1 || readCookie('aff_iata') != null){
	document.write("<iframe frameborder='0' name='if1'  scrolling='no' width='770' height='25' marginwidth='1' marginheight='11' src='http://couples.com/reservhoteljs/AffiliateBanner2.asp?a=" + gup('a') + "&b=" +  gup('b') + "&c=" +  gup('c') + "&d=" +  gup('d') + "&e=" + gup('e') + "'></iframe>");	
}
else 
{
	document.write("<iframe frameborder='0' name='if1'  scrolling='no' width='770' height='0' marginwidth='1' marginheight='1' src='http://couples.com/reservhoteljs/AffiliateBanner2.asp'></iframe>");	
}





//	document.write("<iframe frameborder='0' name='if1'  scrolling='no' width='770' height='25' src='reservhoteljs/AffiliateBanner2.asp?a=" + gup('a') + "&b=" +  gup('b') + "&c=" +  gup('c') + "&d=" +  gup('d') + "&e=" + gup('e') + "'></iframe>");
		