function launch(url,dimin) 
{
self.name = "Parent_Window"; 
var new_window = "scrollbars,resizable," + dimin + ",left=100, top=100";
OpenWindow = window.open(url, "remote", new_window);
}
function breakout_of_frame()
{
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}
function blank(url) {
 	 self.name = "opener";
 	 remote = open(url, "", "location=1, menubar=1, directories=1, resizable= 1, status=1, toolbar=1, scrollbars=1");
}


function refresh()
{
    window.location.reload( false );
}

function WM_imageSwap(daImage, daSrc){
  var objStr,obj;
    // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function WM_preloadImages() {

  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    }
  }
}

function EmailPage() 
{
self.name = "Parent_Window";
var new_url = "../email_page.cfm?url=" + window.location;
var new_window = "resizable, width=550, height=300, left=100, top=100";
OpenWindow = window.open(new_url, "remote", new_window);
}

function aspCheck()
{
	
	if (document.userPass.savecookie.checked==true)
	{
		document.userPass.submit();
		document.userPass.action = "asplogin.asp";
	}
	else
	{
		document.userPass.submit();
		document.userPass.action = "logpro.cfm";
	}
}
function netAspCheck()
{
	
	if (document.userPass.savecookie.checked==true)
	{
		document.userPass.action = "asplogin.asp";
		form.submit;
	}
	else
	{
		document.userPass.action = "logpro.cfm";
		form.submit;	
	}
}
function MM_preloadImages() { //v3.0
  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 deleteItem(name, filelocation)
{
var agree=confirm("Are you sure you want to delete " + name + " ?");
if (agree)
	window.location.href=filelocation; 
}

