function newImage(ID,file) {
	document.getElementById(ID).src='/images/'+file;
}

function open_window(URL,name,left,top,width,height,menubar){
	 rp=window.open(URL,name,"top="+top+",left="+left+",height="+height+",width="+width+",menubar="+menubar+",scrollbars=1,resizable=1,status=1");
	 rp.focus();
	 return(false);
}

function open_app(dropVal) {
    var myIndex = dropVal.selectedIndex;
    if (myIndex != -1) {
        var selected = dropVal.options[myIndex].value;
        if (selected != "*") {
            var result = window.open(selected, "newWin", "top=0,left=0,height=768,width=1024,menubar=0,toolbar=1,scrollbars=1,resizable=1,status=1");            
            result.focus();
        }
    }
    return (false);
}

function open_Email() {
    var result = window.showModalDialog("/Standard-Items/Email-Content.aspx", "", "status:no");
    result.focus();
    return(false);
}

function EmbedFlash(path, height, width, flashvars) {
	var obj = "<object codeBase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" quality=\"high\" ";
	if (height.length > 0)
		obj += "height=\"" + height + "\" ";

	if (width.length > 0)
		obj += "width=\"" + width + "\" ";

	obj += "classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>\r\n";

	document.write(obj)
	document.write("<param name=\"flashvars\" value=\"" + flashvars + "\" />\r\n");
	document.write("<param name=\"movie\" value=\"" + path + "\" />\r\n");
	document.write("<param name=\"src\" value=\"" + path + "\" />\r\n");
	document.write("<param name=\"quality\" value=\"high\" />\r\n");
	document.write("<embed src=\"" + path + "\" quality=\"high\" flashvars=\"" + flashvars + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu=\"false\" height=\"" + height + "\" width=\"" + width + "\" />\r\n");
	document.write("</object>\r\n");
}

function doClear(inputField) {
	if (inputField.value == inputField.defaultValue) {
		inputField.value = "";
		inputField.style.color = "black";
	}
}


