function bookmark(url, title){
if (title == undefined)
		title = document.title;


if (url == undefined)
		url = top.location.href;

if (window.sidebar) window.sidebar.addPanel(title, url,"");

else if( window.opera && window.print )
{
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();
}

else if( document.all ) window.external.AddFavorite( url, title);

}

function make_affiliate() {
	var site = 'www.earn592.com';
	if (el = document.getElementById('clb_id')) cb_id = el.value;
	if (cb_id == "") return false;
	
	//
	cb_id_w = cb_id+'.freebonus2.hop.clickbank.net';	
	cb_id = 'http://'+cb_id+'.freebonus2.hop.clickbank.net/';	

	// affiliate id
	if (el = document.getElementById('aff_id')) {
		document.getElementById('clb_id').disabled = 'true';
		document.getElementById('clb_but').disabled = 'true';
		document.getElementById('aff_link_tb').style.background = '#FFFFFF';
		
		document.getElementById('clb_mess').innerHTML = '<font color="#FF0000" style="font-size: 14pt; font-weight: bold;">"All the tools below are now branded with your Clickbank ID"</font><br><font color="#FF0000" style="font-size: 10pt;">(If your ID is incorrect, refresh the page and rebrand)</font>';
		
		el.innerHTML = cb_id;
	}
	
	// branding ebook
	if (el = document.getElementById('aff_id2')) el.value = cb_id_w;
	if (el = document.getElementById('aff_id3')) el.innerHTML = cb_id_w;
	if (el = document.getElementById('branding_ebook')) el.disabled = false;	
	
	// banners
	var images = ['90x35','120x60','120x600','125x125_1','125x125_2','234x60','468x60', '728x90'];
	for (i=0; i<8; i++) {
		if (el = document.getElementById(images[i])) {
			el.disabled = false;	
			el.value = '<div align="center"><a href="'+cb_id+'" target="_blank"><img src="http://'+site+'/baners/'+images[i]+'.gif" border="0"/></a></div>';
		}
	}
	
	// audio links
	if (el = document.getElementById('ta_audio1')) {
		el.disabled = false;	
		el.value = '<a href="'+cb_id+'" target="_blank">Secret To Earning $592 In 30 Days</a>';
	}

	if (el = document.getElementById('ta_audio2')) {
		el.disabled = false;	
		el.value = '<p align="center"><iframe scroll=no width=124 height=29 frameborder=0 scrolling=no src="http://PlayAudioMessage.com/play.asp?m=447232&f=DOTVUH&ps=14&c=FFFFFF&pm=2&h=29"></iframe></p><p align="center"><a href="'+cb_id+'" target="_blank">Discover How To Earn $592  In 30 Days</a></p>';
	}
	
	if (el = document.getElementById('ta_audio3')) {
		el.disabled = false;	
		el.value = '<p align="center"><iframe scroll=no width=124 height=29 frameborder=0 scrolling=no src="http://PlayAudioMessage.com/play.asp?m=447232&f=DOTVUH&ps=14&c=3333FF&pm=2&h=29"></iframe><a href="'+cb_id+'" target="_blank">Discover How To Earn $592  In 30 Days</a></p>';
	}
	
	if (el = document.getElementById('ta_audio4')) {
		el.disabled = false;	
		el.value = '<p align="center"><iframe scroll=no width=124 height=29 frameborder=0 scrolling=no src="http://PlayAudioMessage.com/play.asp?m=447232&f=DOTVUH&ps=14&c=FF0000&pm=2&h=29"></iframe></p><p align="center"><a href="'+cb_id+'" target="_blank">Discover How To Earn $592  In 30 Days</a></p>';
	}
	
	
	// Signature Lines 
	var texts = ['Discover How To Earn $592 In Only 30 Days <br><a href="'+cb_id+'" target="_blank">'+cb_id+'</a>',
				 'Need To Earn Extra Money?<br>Discover How To Earn $592 In Only 30 Days<br><a href="'+cb_id+'" target="_blank">'+cb_id+'</a>',
				 'Need To Earn Extra Money?<br>Discover How You Can Earn $592 In Only 30 Days<br>With This Step-By-Step Proven System!<br><a href="'+cb_id+'" target="_blank">'+cb_id+'</a>',
				 'Need To Earn Extra Money?<br>Discover How You Can Earn $592 In Only 30 Days.<br>Follow This Step-By-Step Proven System And You<br>Will Be Earning This Amount And Even More!<br><a href="'+cb_id+'" target="_blank">'+cb_id+'</a>'];
	
	for (i=1; i<=4; i++) {
		if (el = document.getElementById('ta_signture'+i)) {
			el.disabled = false;	
			el.value = texts[i-1];
		}
		if (el = document.getElementById('di_signture'+i)) 
			while(el.innerHTML.search('http://INSERT_AFF_LINK') != -1) el.innerHTML = el.innerHTML.replace('http://INSERT_AFF_LINK', cb_id);
	}
	
	// boxes
	var boxes = [
		'<table width="499" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td style="border:#6D6D6D solid 1px"><p align="center"><strong style="font-family: Tahoma;font-weight: bold;font-size: 32px;color: #BB0000;">Thanks For Your Purchase!</strong></p><p align="center"><strong style="font-size: 22px;font-weight: bold;background-color:#FFFF00;">Highly Recommended!</strong></p><p align="center"><span style="color: #0000FF;	font-weight: bold;	font-size: 24px;font-family: Tahoma;">&ldquo;Stay At Home Mom&quot; Leads You Every <br>Step of The Way...  Make $592 in Your <br>First 30 Days Working Just A Few <br>Hours At Home!</span></p><p align="center"><strong><img width="192" height="238" src="http://'+site+'/images/box.jpg"></strong> </p><p align="center"><strong><u><a href="'+cb_id+'" target="_blank">Click Here For Details</a></u></strong></p><p align="center"><strong><u><br></u></strong><br></p></td></tr><tr><td><img width="499" height="36" src="http://'+site+'/images/shadow.jpg"></td></tr></table>',
		'<table width="499" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td style="border:#6D6D6D solid 1px"><p align="center"><strong style="font-family: Tahoma;font-weight: bold;font-size: 32px;color: #BB0000;">Thanks For Subscribing!</strong></p><p align="center"><strong style="font-size: 22px;font-weight: bold;background-color:#FFFF00;">Highly Recommended!</strong></p><p align="center"><span style="color: #0000FF;	font-weight: bold;	font-size: 24px;font-family: Tahoma;">&ldquo;Stay At Home Mom&quot; Leads You Every <br>Step of The Way...  Make $592 in Your <br>First 30 Days Working Just A Few <br>Hours At Home!</span></p><p align="center"><strong><img width="192" height="238" src="http://'+site+'/images/box.jpg"></strong> </p><p align="center"><strong><u><a href="'+cb_id+'" target="_blank">Click Here For Details</a></u></strong></p><p align="center"><strong><u><br></u></strong><br></p></td></tr><tr><td><img width="499" height="36" src="http://'+site+'/images/shadow.jpg"></td></tr></table>',
		'<table width="499" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td style="border:#6D6D6D solid 1px"><p align="center"><strong style="font-family: Tahoma;font-weight: bold;font-size: 32px;color: #BB0000;">You Are Logged Out.</strong></p><p align="center"><strong style="font-size: 22px;font-weight: bold;background-color:#FFFF00;">Highly Recommended!</strong></p><p align="center"><span style="color: #0000FF;	font-weight: bold;	font-size: 24px;font-family: Tahoma;">&ldquo;Stay At Home Mom&quot; Leads You Every <br>Step of The Way...  Make $592 in Your <br>First 30 Days Working Just A Few <br>Hours At Home!</span></p><p align="center"><strong><img width="192" height="238" src="http://'+site+'/images/box.jpg"></strong> </p><p align="center"><strong><u><a href="'+cb_id+'" target="_blank">Click Here For Details</a></u></strong></p><p align="center"><strong><u><br></u></strong><br></p></td></tr><tr><td><img width="499" height="36" src="http://'+site+'/images/shadow.jpg"></td></tr></table>'	];

	for (i=1; i<=3; i++) {
		if (el = document.getElementById('box'+i)) {
			el.disabled = false;	
			el.value = boxes[i-1];
		}		
	}
	
	// articles
	for (i=1; i<=3; i++) {
		if (el = document.getElementById('art'+i+'_source')) 
			while(el.innerHTML.search('http://INSERT_AFF_LINK') != -1) el.innerHTML = el.innerHTML.replace('http://INSERT_AFF_LINK', cb_id);
		if (el2 = document.getElementById('art'+i)) {
			el2.disabled = false;	
			el2.value = el.innerHTML;
		}
	}
	
}
	
function copytext(id) {
	if (el = document.getElementById(id)) {
		el.select(); 
		document.execCommand('Copy');
	}
}