// Standard Dreamweaver functions
function MM_swapImgRestore() 
{
	var i, x, a = document.MM_sr; 
	for (i = 0; a&&i < a.length&&(x=a[i])&&x.oSrc; i++) x.src = x.oSrc;
}

function MM_findObj(n, d) 
{
  	var p, i, x;  
	if (!d) d = document; 
	if ((p=n.indexOf("?")) > 0&&parent.frames.length) 
	{
    	d = parent.frames[n.substring(p+1)].document; 
		n = n.substring(0,p);
	}
  	if (!(x=d[n])&&d.all) x=d.all[n]; 
	for (i=0; !x&&i < d.forms.length; i++) x=d.forms[i][n];
  	for (i=0; !x&&d.layers&&i < d.layers.length; i++) x = MM_findObj(n,d.layers[i].document);
  	if (!x && d.getElementById) x = d.getElementById(n); 
	return x;
}

function MM_swapImage() 
{
	var i, j=0, x, a = MM_swapImage.arguments; 
	document.MM_sr = new Array; 
	for (i=0; i < (a.length-2); i+=3)
   	if ((x=MM_findObj(a[i]))!=null)
	{
		document.MM_sr[j++] = x; 
		if (!x.oSrc) x.oSrc = x.src; x.src = a[i+2];
	}
}

function MM_preloadImages() 
{
	var d=document; 
	if(d.images)
	{
		if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    	if(a[i].indexOf("#")!=0)
		{
			d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
		}
	}
}

function MM_jumpMenu(targ,selObj,restore)
{
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) 
{
	var p,i,x;  
	if (!d) d=document; 
	if ((p=n.indexOf("?")) > 0&&parent.frames.length) 
	{
   		d = parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	}
  	if (!(x=d[n])&&d.all) x=d.all[n]; 
	for (i=0; !x&&i < d.forms.length; i++) x = d.forms[i][n];
  	for (i=0; !x&&d.layers&&i < d.layers.length; i++) x = MM_findObj(n,d.layers[i].document);
  	if (!x && document.getElementById) x=document.getElementById(n); 
	return x;
}

function MM_showHideLayers() 
{
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) 
	if ((obj=MM_findObj(args[i]))!=null) 
  	{ 
		v=args[i+2];
		if (obj.style) 
		{ 
			obj=obj.style; 
			v=(v=='show')?'visible':(v='hide')?'hidden':v; 
		}
		obj.visibility=v; 
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function openNewWindow(URLtoOpen, windowName, windowFeatures) 
{ 
	if (newWindow) newWindow.close(); 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
} 

function openNewWindow(URLtoOpen, windowName, windowFeatures) 
{ 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
	newWindow.focus(); 
}

function MM_openBrWindow(theURL,winName,features) 
{
	window.open(theURL,winName,features);
}

function MM_popupMsg(msg) 
{
	alert(msg);
}

strBaseURL	= 'www.prodance.co.uk';
var isNS4;
var isNS6;
var isIE4;
var isIE5;
var strPlatform;

isNS4 		= (document.layers) ? true : false;
isIE4 		= (document.all && !document.getElementById) ? true : false;
isIE5 		= (document.all && document.getElementById) ? true : false;
isNS6 		= (!document.all && document.getElementById) ? true : false;

Browser 	= navigator.appName
Net 		= Browser.indexOf("Netscape")
Micro 		= Browser.indexOf("Microsoft")
Netscape 	= false
IE 			= false

if(Net >= 0) 
{
	Netscape = true
}

if(Micro >= 0) 
{
	IE = true
}

var xPos;
var yPos;
document.onmousemove = XYpos;

var updateRequest = createMultiRequest();

function createRequest()
{
	try
	{
		request = new XMLHttpRequest();
	}
	catch (trymicrosoft)
	{
		try
		{
			request = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (othermicrosoft)
		{
			try
			{
				request = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (failed)
			{
				request = null;
			}
		}
	}

	if(request == null)
	{
		alert("Error creating request object");
	}

	return request;
}

function createMultiRequest()
{
	try
	{
		request = new XMLHttpRequest();
	}
	catch (trymicrosoft)
	{
		try
		{
			request = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (othermicrosoft)
		{
			try
			{
				request = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (failed)
			{
				request = null;
			}
		}
	}
 
	if(request == null)
	{
		alert("Error creating request object");
	}
 
	return request;
}

function XYpos(e) 
{
	if (IE == true) 
	{
		xPos = event.screenX
		yPos = event.screenY
	}
	else
	{
		xPos = e.clientX;
		yPos = e.clientY;
	}
	
	yPos = document.documentElement.scrollTop + yPos;
}

function getMouseXY(e) 
{
	if (IE) 
	{ // grab the x-y pos.s if browser is IE
		xPos = event.clientX + document.body.scrollLeft
		yPos = event.clientY + document.body.scrollTop
	} 
	else
	{  // grab the x-y pos.s if browser is NS
		xPos = e.pageX
		yPos = e.pageY
	}  
	// catch possible negative values in NS4
	if (xPos < 0){xPos = 0}
	if (yPos < 0){yPos = 0}  
  
  	return true
}

function findPos(obj)
{
	var curleft = curtop = 0;
	if (obj.offsetParent) 
	{
		curleft = obj.offsetLeft
		curtop 	= obj.offsetTop
		while (obj = obj.offsetParent) 
		{
			curleft += obj.offsetLeft
			curtop 	+= obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function is_int(strValue)
{
	var i;

	if (isEmpty(strValue.value))
	{
		return 'empty';
	}

	for (iCount = 0; iCount < strValue.value.length; iCount++)
	{
		var strThisChar = strValue.value.charAt(iCount);

		if (!isDigit(strThisChar))
		{
			return false;
		}
	}
	
	return true;
}

function isEmpty(strValue)
{
	return ((strValue == null) || (strValue.length == 0))
}

function isDigit(iValue)
{
	return ((iValue >= "0") && (iValue <= "9"))
}

function changeActionDiv(strContent, strVisibleStatus, leftPos, topPos)
{
	hActionDiv 					= document.getElementById("actionDiv");
	hActionDiv.innerHTML		= strContent;
	hActionDiv.style.visibility	= strVisibleStatus;
	hActionDiv.style.top		= topPos + 'px';
	hActionDiv.style.left		= leftPos + 'px';
}

function showActionLayer(iLeft, iTop, iWidth, iHeight)
{
	hALayer						= document.getElementById("actionLayer");
	hALayer.style.background	= '#FFFFFF';
	hALayer.style.visibility	= 'visible';
	hALayer.style.left			= iLeft + 'px';
	hALayer.style.top			= iTop + 'px';
	hALayer.style.width			= iWidth + 'px';
	hALayer.style.height		= iHeight + 'px';
}

function hideActionLayer()
{
	hALayer 					= document.getElementById("actionLayer");
	hALayer.style.visibility	= 'hidden';
}

function hideActionDiv()
{
//	if(IE)
//	{
//		upload					= document.getElementById("actionLayer");
//		upload.style.visibility	= 'hidden';
//	}

	handle 						= document.getElementById("actionDiv");
	handle.style.visibility 	= "hidden";
}

function getCheckedValue(radioObj) 
{
	if(!radioObj)	return "";
	
	var radioLength = radioObj.length;
	
	if(radioLength == undefined)
	{
		if(radioObj.checked)
		{
			return radioObj.value;
		}
		else
		{
			return "";
		}
	}
	
	for(var i = 0; i < radioLength; i++) 
	{
		if(radioObj[i].checked) 
		{
			alert(radioObj[i].value);
			return radioObj[i].value;
		}
	}
	return "";
}



// FRONT ENT
function changeImage(strImage, strAlt)
{
	hMainImage	=	document.getElementById('mainimagespan');
	strNewImage	=	'<img src="' + strImage + '" alt="' + strAlt + '" title="' + strAlt + '" width="340" height="408" border="0" />';
	hMainImage.innerHTML	=	strNewImage;
}


function showVideo(strPath)
{
	if(strPath.substr(0,7) == 'youtube')
	{
//		strPath		=	strPath.substr(7);
		strPath		=	strPath.substr(10, 11);
		//strContent	=	"<object width=\"640\" height=\"390\"><param name=\"movie\" value=\"http://www.youtube.com" + strPath + "\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com" + strPath + "\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"640\" height=\"390\"></embed></object>";
		
		strContent	=	"<p class=\"subtext\" style=\"text-align:right;\"><a href=\"javascript:hideVideo()\" class=\"light\">close  X</a><br><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='640' height='360' id='single1' name='single1'><param name='movie' value='http://www.prodance.co.uk/videos/player2/player-licensed.swf'><param name='allowfullscreen' value='true'><param name='allowscriptaccess' value='always'><param name='wmode' value='transparent'><param name='flashvars' value='file=http://www.youtube.com/v/"  + strPath +  "&backcolor=F3AA00&controlbar=over&image=/images/videoimage.jpg''><embed type='application/x-shockwave-flash' id='single2' name='single2' src='http://www.prodance.co.uk/videos/player2/oplayer-licensed.swf' width='640' height='360' bgcolor='undefined' allowscriptaccess='always' allowfullscreen='true' wmode='transparent'	flashvars='file=http://www.youtube.com/v/"  + strPath +  "&backcolor=F3AA00&controlbar=over'/></object>";
	}
	else
	{
		strContent	=	"<p class=\"subtext\" style=\"text-align:right;\"><a href=\"javascript:hideVideo()\" class=\"light\">close  X</a><br><embed src='/videos/player2/player-licensed.swf' width='640' height='360' bgcolor='#000000' allowscriptaccess='always' allowfullscreen='true' flashvars='file=http://" + strBaseURL + strPath + "&backcolor=000000&frontcolor=F3AA00&lightcolor=FFFFFF&screencolor=000000&controlbar=over&stretching=exactfit'/></p>";
	}

	// Get the window dimensions and if the page has scrolled
	var iWindowWidth = 0
	var iWindowHeight = 0;
	var iScrollX = 0
	var iScrollY = 0;
	if(typeof( window.innerWidth ) == 'number')
	{
		//Non-IE
		iWindowWidth	=	window.innerWidth;
		iWindowHeight	=	window.innerHeight;
		iScrollY		=	window.pageYOffset;
		iScrollX		=	window.pageXOffset;
	} 
	else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
	{
		//IE 6+ in 'standards compliant mode'
		iWindowWidth	=	document.documentElement.clientWidth;
		iWindowHeight	=	document.documentElement.clientHeight;
		iScrollY		= 	document.documentElement.scrollTop;
		iScrollX		= 	document.documentElement.scrollLeft;
	}
	else if(document.body && (document.body.clientWidth || document.body.clientHeight))
	{
		//IE 4 compatible
		iWindowWidth	=	document.body.clientWidth;
		iWindowHeight	=	document.body.clientHeight;
		iScrollY		= 	document.body.scrollTop;
		iScrollX		= 	document.body.scrollLeft;
	}
	
	iWindowWidth	=	iWindowWidth - 17;
	
	// Make the semi-trasparent background visible
	hActionDiv 					= document.getElementById("actionDiv");
	hActionDiv.style.visibility	= 'visible';
	hActionDiv.style.top		= iScrollY + 'px';
	hActionDiv.style.left		= '0px';
	hActionDiv.style.width		= iWindowWidth + 'px';
	hActionDiv.style.height		= iWindowHeight + 'px';
	
	// Where is the video going?
	iVideoTop	=	((iWindowHeight / 2) - 150) + iScrollY;
	iVideoLeft	=	(iWindowWidth / 2) - 300;
	
	// Make the foreground visible
	hActionDiv 					= document.getElementById("actionDivFore");
	hActionDiv.innerHTML		= strContent;
	hActionDiv.style.visibility	= 'visible';
	hActionDiv.style.top		= iVideoTop + 'px';
	hActionDiv.style.left		= iVideoLeft + 'px';
	hActionDiv.style.width		= '600px';
	hActionDiv.style.height		= '300px';

}


function hideVideo()
{
	hActionDiv 						= document.getElementById("actionDiv");
	hActionDiv.style.visibility		= 'hidden';
	hActionDivFore					= document.getElementById("actionDivFore");
	hActionDivFore.style.visibility	= 'hidden';
	hActionDivFore.innerHTML		= '';
}



// ADMIN
function adminChangeNewsImage(iNewsID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Image</span></td></tr><tr><td align="center"><input type="file" name="theimage" size="48" onFocus="select()" /><br /><span class="failure">the image must be W: 440px by H:395px</span><br><br><input type="hidden" name="m" value="updateimage"  /><input type="hidden" name="iNewsID" value="'  + iNewsID + '"  /><input type="submit" name="submit" value=" Update Image " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeCaseStudyImage(iCaseID, iImage)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Image</span></td></tr><tr><td align="center"><input type="file" name="theimage" size="48" onFocus="select()" /><br /><span class="failure">the image must be W: 340px by H:408px</span><br><br><input type="hidden" name="m" value="updateimage" /><input type="hidden" name="iCaseID" value="'  + iCaseID + '"  /><input type="hidden" name="iImage" value="'  + iImage + '"  /><input type="submit" name="submit" value=" Update Image " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeCaseStudyVideo(iCaseID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Video</span></td></tr><tr><td align="center"><input type="file" name="thevideo" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatevideo" /><input type="hidden" name="iCaseID" value="'  + iCaseID + '" /><input type="submit" name="submit" value=" Update Video " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeCaseStudyPDF(iCaseID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change PDF</span></td></tr><tr><td align="center"><input type="file" name="thepdf" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatepdf" /><input type="hidden" name="iCaseID" value="'  + iCaseID + '" /><input type="submit" name="submit" value=" Update PDF " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeCaseStudyLogo(iCaseID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Client Logo</span></td></tr><tr><td align="center"><input type="file" name="clientlogo" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatelogo" /><input type="hidden" name="iCaseID" value="'  + iCaseID + '" /><input type="submit" name="submit" value=" Update Logo " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeArtistImage(iArtistID, iImage)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Image</span></td></tr><tr><td align="center"><input type="file" name="theimage" size="48" onFocus="select()" /><br /><span class="failure">the image must be W: 340px by H:408px</span><br><br><input type="hidden" name="m" value="updateimage" /><input type="hidden" name="iArtistID" value="'  + iArtistID + '"  /><input type="hidden" name="iImage" value="'  + iImage + '"  /><input type="submit" name="submit" value=" Update Image " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeArtistVideo(iArtistID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Video</span></td></tr><tr><td align="center"><input type="file" name="thevideo" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatevideo" /><input type="hidden" name="iArtistID" value="'  + iArtistID + '" /><input type="submit" name="submit" value=" Update Video " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeArtistPDF(iArtistID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change PDF</span></td></tr><tr><td align="center"><input type="file" name="thepdf" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatepdf" /><input type="hidden" name="iArtistID" value="'  + iArtistID + '" /><input type="submit" name="submit" value=" Update PDF " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeStageImage(iStageID, iImage)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Image</span></td></tr><tr><td align="center"><input type="file" name="theimage" size="48" onFocus="select()" /><br /><span class="failure">the image must be W: 340px by H:408px</span><br><br><input type="hidden" name="m" value="updateimage" /><input type="hidden" name="iStageID" value="'  + iStageID + '"  /><input type="hidden" name="iImage" value="'  + iImage + '"  /><input type="submit" name="submit" value=" Update Image " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeStageVideo(iStageID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Video</span></td></tr><tr><td align="center"><input type="file" name="thevideo" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatevideo" /><input type="hidden" name="iStageID" value="'  + iStageID + '" /><input type="submit" name="submit" value=" Update Video " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeStagePDF(iStageID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change PDF</span></td></tr><tr><td align="center"><input type="file" name="thepdf" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatepdf" /><input type="hidden" name="iStageID" value="'  + iStageID + '" /><input type="submit" name="submit" value=" Update PDF " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeProEntImage(iProEntID, iImage)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Image</span></td></tr><tr><td align="center"><input type="file" name="theimage" size="48" onFocus="select()" /><br /><span class="failure">the image must be W: 340px by H:408px</span><br><br><input type="hidden" name="m" value="updateimage" /><input type="hidden" name="iProEntID" value="'  + iProEntID + '"  /><input type="hidden" name="iImage" value="'  + iImage + '"  /><input type="submit" name="submit" value=" Update Image " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeProEntVideo(iProEntID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change Video</span></td></tr><tr><td align="center"><input type="file" name="thevideo" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatevideo" /><input type="hidden" name="iProEntID" value="'  + iProEntID + '" /><input type="submit" name="submit" value=" Update Video " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminChangeProEntPDF(iProEntID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Change PDF</span></td></tr><tr><td align="center"><input type="file" name="thepdf" size="48" onFocus="select()" /><br><br><input type="hidden" name="m" value="updatepdf" /><input type="hidden" name="iProEntID" value="'  + iProEntID + '" /><input type="submit" name="submit" value=" Update PDF " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}


function adminFeatureProEnt(iProEntID)
{
	strContent = '<form action="index.php" method="POST" enctype="multipart/form-data"><table width="250" border="0" cellpadding="2" cellspacing="0"><tr><td align="center"><span class="subheading">Make Featured</span></td></tr><tr><td align="center"><input type="file" name="theimage" size="48" onFocus="select()" /><br /><span class="failure">the image must be W: 315px by H:318px</span><br><br><input type="hidden" name="m" value="feature" /><input type="hidden" name="iProEntID" value="'  + iProEntID + '" /><input type="submit" name="submit" value=" Make Featured " class="button" />&nbsp;&nbsp;&nbsp;<input type="button" value=" Cancel " name=" Cancel " onclick="hideActionDiv()"></td></tr></table></form>';
		
	changeActionDiv(strContent, 'visible', xPos - 150, yPos - 75);
}








// For reference
function getSomething()
{
	var strURL	= 'http://' + strBaseURL + '/admin/stocks/getweeks.php?venueid=' + iVenueID + '&type=' + strType + '&dummy=' + new Date().getTime();

	week = createRequest();
	week.open("GET", strURL, true);
	week.onreadystatechange = showWeekDrop;
	week.send(null);
}

function showSomething()
{
	if(week.readyState == 4)
	{
		handle = document.getElementById("weekDropSpan");
		handle.innerHTML = week.responseText;
	}
}













