
/*function imageIndexPopup(strFormName, strImageField, intImageSizeId, intImageSetForCreation){
	var frm;
	var qs;

	frm = document.forms[strFormName];
	if (frm){
		qs = "?form_name=" + strFormName + "&image_field=" + strImageField + "&imagesizeid=" + intImageSizeId + "&imagesetid=" + intImageSetForCreation;
		qs = qs + "&image_value=" + frm.elements[strImageField].value;
		
		iiWindow = popUp("/manage/imageindex/EditImagePop.asp" + qs, "iiwindow", 388, 600); //was 500
		iiWindow.focus();
	}
}*/


// Reloads an iframe
// strFrame is the name of the frame e.g. "aframe.asp"
// strURL is the full URL including the frame name e.g. "aframe.asp?id=2"
function RefreshIFRAME(strFrame, strURL)
{
	var IFrameObj = new Object();
	IFrameObj.document = new Object();
	IFrameObj.document.location = new Object();
	IFrameObj.document.location.iframe = parent.document.getElementById(strFrame);
	IFrameObj.document.location.replace = function(location) 
	{
		this.iframe.src = location;
	}
	IFrameObj.document.location.replace(strURL);
}

// selects the text in a textbox when it is called from the onclick event ie onclick="selectText(this)"
function selectText(txt){
	txt.select();
}

// Opens up a picture in its own window and resizes it to the correct size
/*function PopupPic(sPicURL)
{ 
	window.open("/includes/common/popup_image.asp?" + sPicURL, "ImageViewer","resizable=1,HEIGHT=200,WIDTH=200"); 
}*/ 