
function showPage(pageName,contentLocation,extraArgs) {
	if(contentLocation) {
		// get date's milliseconds for cache prevention - use xx when passing the url -ej-
		var d2 = new Date();
		var url = 'DPWContent.cfm';
		var params = '?pageName='+pageName+'&xx='+d2.getMilliseconds();
		
		if(extraArgs){
			params += extraArgs;
		}
		//prompt('',url + params);


		$(contentLocation).innerHTML = "Loading...";
		var ajax = new Ajax.Updater(
		{success: contentLocation},
		url,
		{method: 'get', parameters: params, onFailure: reportError, asynchronous:true, evalScripts:true});
	} else {
		alert('Error: Content location does not exist.');
	}
}

function createSubDomainLink(subDomain,uitProjID){
	/*
	
	Didn't quite have time to wrap this up, but I was figuring that this function would take in the subdomain sent in from the "property website URL:" text field in UIT-NewProject.cfm (underneath the [edit teaser] link) as well as the project id.
	
	From the UIT project ID, in the main UIT query I have the DocCenterID, ListingID, PropertyID (for the subject), ReportID, etc.  Seems the best place to start and then we can move it later if it belongs in the 24/7 instead.
	
	so this would use an Ajax.Updater() call like the method above this one to send a request to a DPWContent.cfm case block which would:
	
	1) check for duplicates and if one is found, display an appropriate message
	2) if not, it would add a block to tblMapping with the subdomain = map_Label / UITProjID = map_parentType / UIT Project ID = map_parentID
	3) for now map_childID can stay open - might be useful for storing extraargs or a simple ID like docCenterID, reportID, listingID, etc.
	4) one saved, the div surrounding the UIT subdomain field would be filled with a "green" colored xxxxxx.hpapts.com and the text field div would be hidden (haven't put the divs there yet)
	
	*/
}

function reportError(request,divID) {
	alert("<b style='color:red'>Error: " + request.status + "</b>");
}

