
function display_title(val)
{
	/* Load the proper "tab" */
	parent.frames['title'].location=val;

}

function onLink(L)
{
	if (L.style.color = 'White')
	{
	    L.style.color = 'Yellow';
	    L.style.textDecoration = "none";
	}
}
function offLink(L)
{
	if (L.style.color = 'Yellow')
	{
		L.style.color = 'White';
		L.style.textDecoration = "none";
	}

}

function openNewTwo(page)
{
	var newWin;

	newWin = window.open( page, 'JordanArticle', config='height=600,width=800, resizable,scrollbars');
	newWin.focus();

}

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 openNew(page,val)
{
     var app=navigator.appName;
     var newWin;
     
     /* Netscape sucks! Following line will attest */
     /* check browser - if Navigator re-load frame */
     /* Otherwise IE works fine !                  */
     if (app.indexOf('Netscape') != -1) 
     {
     parent.frames[3].location=val;
     }
     newWin = window.open(page, 'PicWindow', config='resizable,scrollbars,left=2,width=740');

     newWin.focus();


}

function openScan(page,pic)
{
     var newWin;

	/* open the scan with the desired image */	
	alert('ok - page = ' + page);
	alert('and - pic = ' + pic);
	
     newWin = window.open(page, 'PicWindow',config='resizable,scrollbars,left=2,width=760');
   	alert('newWin = ' + newWin); 
   	alert('newWin.image_name = ' + newWin.image_name);
     newWin.image_name.src=pic;	
     	alert('two - newWin.image_name.src = ' + newWin.image_name.src);

     newWin.focus();


}

timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT, SCANTITLE, WORDS) {
/* windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50); */
/* alert(WORDS); */
windowprops = "left=6,top=6,width=" + WIDTH + ",height=" + HEIGHT + ",scrollbars, resizable";

/* text = "<html><head><title>Preview</title></head><body bgcolor='white'"; */
text = "<html><head><title>" + SCANTITLE + "</title><LINK REL=STYLESHEET HREF='style/stylesheet.css' TYPE='text/css'></head><body bgcolor='white'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><center><img src='" + URL + "'>";

if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

text += WORDS + "</center></body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
preview.document.focus();

}
