function jsAlert(title,width,height,url)
{

		createCustomAlert(title,width,height,url);
	
}


function createCustomAlert(csstitle,csswidth,cssheight,url) {
	// shortcut reference to the document object
	d = document;
	// if the modalContainer object already exists in the DOM, bail out.
	if(d.getElementById("modalContainer")) return;

	// create the modalContainer div as a child of the BODY element
	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainer";
	
	 // make sure its as tall as it needs to be to overlay all the content on the page
	//mObj.style.height = document.documentElement.scrollHeight + "px";
	//mObj.style.width = document.documentElement.scrollWidth + "px";

	// create the DIV that will be the alert 
	alertObj = mObj.appendChild(d.createElement("div"));
	alertObj.id = "alertBox";
	//alertObj.style.height=cssheight+"px";
	alertObj.style.width=csswidth+"px";
	// MSIE doesnt treat position:fixed correctly, so this compensates for positioning the alert
	if(d.all && !window.opera) alertObj.style.top = document.documentElement.scrollTop + "px";
	// center the alert box
	alertObj.style.top= (window.innerHeight-csswidth)/2 + "px";
	alertObj.style.left = (d.documentElement.scrollWidth - alertObj.offsetWidth)/2 + "px";
	
	
	
	// create an H1 element as the title bar
	h1 = alertObj.appendChild(d.createElement("h1"));
	h1.appendChild(d.createTextNode(csstitle));

	// create a paragraph element to contain the txt argument
	msg = alertObj.appendChild(d.createElement("div"));
	msg.style.width=csswidth;
	msg.style.height=cssheight;
	msg.id="confirmMessage"
	d.getElementById("confirmMessage").innerHTML=("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' , width='"+ csswidth +"',height='"+ cssheight +"', id='FLVPlayer'><param name='movie' value='FLVPlayer_Progressive.swf' /><param name='salign' value='lt' /><param name='quality' value='high' /><param name='scale' value='noscale' /><param name='FlashVars' value='&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=" + url + "&autoPlay=true&autoRewind=false' /><embed src='FLVPlayer_Progressive.swf' flashvars='&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=" + url + "&autoPlay=true&autoRewind=false' quality='high' scale='noscale' width='"+ csswidth +"' , height='"+ cssheight +"' name='FLVPlayer' salign='LT' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' /></object>");	






    cnt=alertObj.appendChild(d.createElement("center"));
	// create an anchor element to use as the confirmation button.
	btn = cnt.appendChild(d.createElement("button"));
	btn.appendChild(d.createTextNode("Close Window"));
	btn.href = "#";
	// set up the onclick event to remove the alert when the anchor is clicked
	btn.onclick = function() { removeCustomAlert();return false; }
	/*	
	btn2 = cnt.appendChild(d.createElement("button"));
	btn2.id = "customButton2";
	btn2.appendChild(d.createTextNode("Cancel"));
	btn2.href = "#";
	// set up the onclick event to remove the alert when the anchor is clicked
	btn2.onclick = function() { setDiv();return false; }
	
*/
	
}

// removes the custom alert from the DOM
function removeCustomAlert() {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
	document.getElementById("cancel").innerHTML="Confirm now send form";
	
}
function setDiv() {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
}