<!--// a HREF=JavaScript:openPop("http://djdannymiller.com/images/videos/misc/fractal_bubble.html","","width=600,height=395,menubar=1,resizable=0,scrollbars=yes,status=0,titlebar=0,toolbar=0,left=0,top=0")}

/* function openPop(URL, name) {
 	window.open(URL, name, "toolbar=no, scrollbars=no, location=no, resizable=yes, menubar=yes" width, height, left, top);
}
*/

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 4;
var wint = (screen.height - h) / 4;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

	 
// <a href="album_images/techno_world.html" onClick="NewWindow(this.href,'tech_du_monde','431','431','no');return false;" target="_blank" status="yes"><img src="album_images/techno_du_monde_link.jpg" width="59" height="59" border="0" alt="click for track listing"></a>






function randomAlpha(length) {
		
	var textString = 'abcdefghijkmnpqrstuvwxyz';
	
	if (!length || length > 1000 || length < 1 || isNaN(length)) {
	  alert('Error of type -362 occurred.\n\nArgument '+ unescape("%D2length%D3") + " given invalid radii.");
	  return (isNaN(length)) ? 'non-numeric argument' : 'bad numeric identity';
	}
	
	var aHardThing = '';
	
	while (aHardThing.length < length) {
	  var randChar = textString.charAt(   Math.floor(Math.random() * textString.length)   );
	  aHardThing += (Math.random() < .5) ? randChar.toUpperCase() : randChar;
	  
	} return aHardThing;

}
	 
	 
		
function recalculateHostingTotals() {
	
	// alert("got it");
	var subscriptionTotal=0;
	var setupTotal=0;
	
	var basePrice=parseInt(document.paypalSubscriptionForm.basePrice.value);
	// alert ("base price " + basePrice);
	
	var phpTotal=0;
	var phpPrice=parseInt(document.paypalSubscriptionForm.phpPrice.value);
	if (document.paypalSubscriptionForm.phpPrice) {
		if (document.paypalSubscriptionForm.php.checked == true) {
			phpTotal=phpPrice;	
			// alert ("php total " + phpTotal);
		}
	} 
	
	var mysqlTotal=0;
	var mysqlPrice=parseInt(document.paypalSubscriptionForm.mysqlPrice.value);
	if (document.paypalSubscriptionForm.mysqlPrice) {
		if (document.paypalSubscriptionForm.mysql.checked == true) { 
			mysqlTotal=mysqlPrice;	
			// alert ("mysql total " + mysqlTotal);
		}
	} 
	
	var phpmysqlTotal=0;
	if ((document.paypalSubscriptionForm.mysql.checked == true) && (document.paypalSubscriptionForm.php.checked == true)) {
		phpTotal=0; 
		mysqlTotal=0; 
		phpmysqlTotal=parseInt(document.paypalSubscriptionForm.phpmysqlPrice.value);
	}
	
	
	var cgiTotal=0;
	var cgiPrice=parseInt(document.paypalSubscriptionForm.cgiPrice.value);
	if (document.paypalSubscriptionForm.cgiPrice) {
		if (document.paypalSubscriptionForm.cgi.checked == true) { 
			cgiTotal=cgiPrice;	
			// alert ("cgi total " + cgiTotal);
		}
	} 
	
	var sslTotal=0;
	var sslPrice=parseInt(document.paypalSubscriptionForm.sslPrice.value);
	if (document.paypalSubscriptionForm.sslPrice) {
		if (document.paypalSubscriptionForm.ssl.checked == true) { 
			sslTotal=sslPrice;	 
			var sslSetupTotal = parseInt(document.paypalSubscriptionForm.sslSetupFee.value);
			// alert ("ssl recurring " + sslTotal);
			// alert ("ssl setup " + sslSetupTotal);
		}
	} 
	
	var storageTotal=0;
	var storageTotal=parseInt(document.paypalSubscriptionForm.additional_storage.value);
	// alert ("storage total = " + storageTotal);
	
	var popAcctTotal=0;
	var popAcctTotal=parseInt(document.paypalSubscriptionForm.popBoxPrice.value * document.paypalSubscriptionForm.additional_pops.value);
	// alert ("pop total = " + popAcctTotal);
	
		subscriptionTotal = ( basePrice + storageTotal + phpTotal + mysqlTotal + phpmysqlTotal + cgiTotal + popAcctTotal + sslTotal );
		document.paypalSubscriptionForm.a3.value=subscriptionTotal;
		
		setupTotal =  ( sslSetupTotal );
		if(setupTotal) { 
			document.paypalSubscriptionForm.setupFee.value=setupTotal;
		} 
		else { 
			document.paypalSubscriptionForm.setupFee.value=0;
		} 
		
		
		// alert ("subscription total = " + subscriptionTotal);
	//additional_storage
}
	 

//-->
