<?xml version = '1.0' encoding = 'UTF-8'?>
<!-- $Header: oamNewWindow.uix 115.40 2003/12/22 18:17:03 ppradhan ship $ -->
<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">
   <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <dataScope>
      <contents>
<!-- author:ppradhan-->
<!-- history-->
<!-- date:09/26/2001	draft-->
	<script><contents>
		// General function to open new window
		// Assumes url already has an event appended to it
		function launch_new_window_x(url) {
			destination=url;
			//var d = new Date();
			//var s = d.toString();
			//destination = destination + "&amp;uid2=" + s; 
			window.open(destination,null,'toolbar=0,location=0,directories=0,status=0,menubar=0,width=750,height=550,resizable=1,scrollbars=1');	
		}
		// General function to open new window
		// Assumes url already has an event appended to it
		function launch_new_window(url) {
			destination=url;
			var d = new Date();
			var s = d.toString();
			destination = destination + "&amp;uid2=" + s; 
			window.open(destination,null,'toolbar=0,location=0,directories=0,status=0,menubar=0,width=750,height=550,resizable=1,scrollbars=1');	
		}

		// Description: This generic function can be used to launch 
		// a new
		// window and at the same time fire an event. This will be
		// particularly useful when launching a new window and
		// redirecting to a URL outside of the OAM Context.
		// Parameters:
		// url: Base Url (required)
		// event: name of the event to be fired (can be null)
		// pArray: Two dimensional array of event (can be null)
		//	parameters names, values.
		function launch_in_new_window(url, event, pArray) {
			destination=url;
			var d = new Date();
			var s = d.toString();
			addmore = true;
			
			if (event != void(0)) {
				destination = destination + "?event=" + event;
			} else {
				destination = destination + "?uid=" + s;
				addmore = false;
			}
			if (addmore) {
				if (pArray != void(0)) {
				 for(var i=0; i &lt; pArray.length; i++) {
					destination = destination + "&amp;"+pArray[i][0]+"="+pArray[i][1];	
				 }
				} else {
					addmore = false;
				}
				destination = destination + "&amp;uid=" + s;
			} else {
				addmore = false;
			}
					
			//alert(destination);
			window.open(destination,null,'toolbar=0,location=0,directories=0,status=0,menubar=0,width=750,height=550,resizable=1,scrollbars=1');
		}

		// Features for Modal
		var features=
					{
						channelmode:false,
						copyhistory:false,
						dependent:true,
						directories:false,
						fullscreen:false,
						hotkeys:false,
						location:false,
						menubar:false,
						resizable:true,
						scrollbars:true,
						status:false,
						width:800,
						height:600
					};


		// Description: This function can be used to launch 
		// a new
		// window and at the same time fire an event that is specific
		// to launching the Self Service Framework. In the new window
		// the 'launchSSF' event will be fired
		// Parameters:
		// url: Base Url (required)
		// fName: Function Name if launching SSF for a specific request
		// 	for example, 'FNDWFPG' for Workflow Purge. If this 
		// 	parameter is null, SSF will launch for general request
		// 	submission. (null allowed)
	        // DEPRECATED! do not use
		function launch_in_new_window_ssf(url, fName) {
			var d = new Date();
			var s = d.toString();
			destination=url + "?event=launchSSF";
			if (fName != void(0)) {
				destination = destination + "&amp;f=" + fName;
			}
			destination = destination + "&amp;uid=" + s;
			window.open(destination,null,'toolbar=0,location=0,directories=0,status=0,menubar=0,width=750,height=550,resizable=1,scrollbars=1');
			<!--openWindow(window, destination,null,features,true,null,null);-->
		}


		// Description: This function can be used to launch 
		// a new
		// window and at the same time fire an event that is specific
		// to launching the Self Service Framework. In the new window
		// the 'launchSSF' event will be fired
		// Parameters:
		// url: Base Url (required)
		// progApplName: Application Short Name
                // progName: Program Short Name
		function launch_in_new_window_ssf(url, progApplName, progName) {
		  launch_in_new_window_ssf(url, progApplName, progName, void(0));

		}

		// Description: This function can be used to launch 
		// a new
		// window and at the same time fire an event that is specific
		// to launching the Self Service Framework. In the new window
		// the 'launchSSF' event will be fired
		// Parameters:
		// url: Base Url (required)
		// progApplName: Application Short Name
                // progName: Program Short Name
                // params: Any other parameters in the form:
 		//         name1=val1&amp;name2=val2
		function launch_in_new_window_ssf(url, progApplName, progName, params) {
			var d = new Date();
			var s = d.toString();
			destination=url + "?event=launchSSF";
			if (progApplName != void(0)) {
				destination = destination + "&amp;pa=" + progApplName;
			}
			if (progName != void(0)) {
				destination = destination + "&amp;p=" + progName;
			}
			if (params != void(0)) {
				destination = destination + "&amp;" + params;
			}
			destination = destination + "&amp;uid=" + s;
			window.open(destination,null,'toolbar=0,location=0,directories=0,status=0,menubar=0,width=750,height=550,resizable=1,scrollbars=1');
			<!--openWindow(window, destination,null,features,true,null,null);-->
		}
	</contents></script>	
				 
      </contents>
    </dataScope>
   </baja:content>
</page>





