function updatePOTD(w,p){
	switch(w){
		case 88:
			document.getElementById('potd').value='\r<a href="http://thewetpeach.com/images/promo/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://thewetpeach.com/images/promo/potd/88x88/potd.jpg" alt="The Wet Peach Picture Of The Day!" />\r</a>';
			break;
		case 100:
			document.getElementById('potd').value='\r<a href="http://thewetpeach.com/images/promo/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://thewetpeach.com/images/promo/potd/100x133/potd.jpg" alt="The Wet Peach Picture Of The Day!" />\r</a>';
			break;
		case 125:
			document.getElementById('potd').value='\r<a href="http://thewetpeach.com/images/promo/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://thewetpeach.com/images/promo/potd/125x150/potd.jpg" alt="The Wet Peach Picture Of The Day!" />\r</a>';
			break;
		case 150:
			document.getElementById('potd').value='\r<a href="http://thewetpeach.com/images/promo/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://thewetpeach.com/images/promo/potd/150x200/potd.jpg" alt="The Wet Peach Picture Of The Day!" />\r</a>';
			break;
		case 160:
			document.getElementById('potd').value='\r<a href="http://thewetpeach.com/images/promo/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://thewetpeach.com/images/promo/potd/160x160/potd.jpg" alt="The Wet Peach Picture Of The Day!" />\r</a>';
			break;
		case 177:
			document.getElementById('potd').value='\r<a href="http://thewetpeach.com/images/promo/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://thewetpeach.com/images/promo/potd/177x270/potd.jpg" alt="The Wet Peach Picture Of The Day!" />\r</a>';
			break;
	}
}

function scPOTD(w,p,d,m,i,h){
 if(h==2){
 	$( 'potd' + i ).value='<a href="http://'+d+'/promo/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://'+d+'/promo/potd/' + w + '/potd.jpg" alt="' + m + ' Picture Of The Day!" border="0" />\r</a>';
 	$( 'image' + i ).src='http://'+d+'/promo/potd/' + w + '/potd.jpg';
 }else{
 	$( 'potd' + i ).value='<a href="http://wetpeachcash.com/potd/' + i + '/' + p + '" target="_blank">\r\t<img src="http://wetpeachcash.com/potd/' + d.replace( '.com', '' ) + '/' + w + '/potd.jpg" alt="' + m + ' Picture Of The Day!" border="0" />\r</a>';
 	$( 'image' + i ).src='http://wetpeachcash.com/potd/' + d.replace( '.com', '' ) + '/' + w + '/potd.jpg';
 }
}
function scVOTD(w,p,d,m,i){
	$( 'votd' + i ).value='<a href="http://wetpeachcash.com/votd/' + i + '/' + p + '" target="_blank">\r\t<img src="http://wetpeachcash.com/votd/' + i + '.jpg" alt="' + m + ' Video Of The Day!" width="200" height="150" />\r</a>';
}
function switchPOTD(w,p,d,m){
	switch(w){
		case 88:
			document.getElementById('potd').value='\r<a href="http://' + d + '/images/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://' + d + '/images/potd/88x88/potd.jpg" alt="' + m + ' Picture Of The Day!" />\r</a>';
			break;
		case 100:
			document.getElementById('potd').value='\r<a href="http://' + d + '/images/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://' + d + '/images/potd/100x133/potd.jpg" alt="' + m + ' Picture Of The Day!" />\r</a>';
			break;
		case 125:
			document.getElementById('potd').value='\r<a href="http://' + d + '/images/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://' + d + '/images/potd/125x150/potd.jpg" alt="' + m + ' Picture Of The Day!" />\r</a>';
			break;
		case 150:
			document.getElementById('potd').value='\r<a href="http://' + d + '/images/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://' + d + '/images/potd/150x200/potd.jpg" alt="' + m + ' Picture Of The Day!" />\r</a>';
			break;
		case 160:
			document.getElementById('potd').value='\r<a href="http://' + d + '/images/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://' + d + '/images/potd/160x160/potd.jpg" alt="' + m + ' Picture Of The Day!" />\r</a>';
			break;
		case 177:
			document.getElementById('potd').value='\r<a href="http://' + d + '/images/potd/index.php?ccbill=' + p + '" target="_blank">\r\t<img src="http://' + d + '/images/potd/177x270/potd.jpg" alt="' + m + ' Picture Of The Day!" />\r</a>';
			break;
	}
}