/* --------------------------------- */
/*       STANDARD TIMES TRIBUNE	     */
/* --------------------------------- */
/*        	GLOBAL DRIVERS	     	 */
/* --------------------------------- */
/*  Created:  2003-06-01             */
/*  Issued:   2003-06-01             */
/*  Modified: 2003-06-18             */
/*  ST Tribune: Global Drivers	     */
/*  Copyright (c) 2003 by            */
/*  A.R. Pisarra, SophiaKnows        */
/* --------------------------------- */


/*	POP TOOL WINDOWS: POP TOOL WINDOW */	

function PopTools(where){
	popToolWindow=window.open(where,"","width=540,height=500,scrollbars=yes");	
	}

/*	PHOTO FUNCTIONS: POP PHOTO WINDOW */	

function PopPhoto(where){
	popToolWindow=window.open(where,"","width=500,height=550,scrollbars=auto,resizable=yes");	
	}

/*	POP TOOL WINDOWS: POP REPORT WINDOW */	

function PopReport(where){
	popToolWindow=window.open(where,"","width=650,height=400,scrollbars=yes");	
	}

/*	POP TOOL WINDOWS: POP GUIDE WINDOW */	

function PopGuide(where){
	popToolWindow=window.open(where,"","width=725,height=400,scrollbars=yes");	
	}
/*	POP TOOL WINDOWS: POP CALENDAR WINDOW */	

function PopCalendar(where){
	popToolWindow=window.open(where,"","width=600,height=450,scrollbars=yes");	
	}

/*	SUBMIT ITEM: POP SUBMIT */	

function PopSubmit(what){
	var whatWhere=what+"form.html";
	submitWindow=window.open(whatWhere,"","width=500,height=500,scrollbars=auto");	
	}

/*	RATE ITEM: POP VOTE */	

function PopVote(){
	voteWindow=window.open("../assistants/vote.html","","width=280,height=120,scrollbars=auto");	
	}

/*	PRINT ITEM */	

/*	PRINT ITEM: BOILER PLATE */	

	var boilerPlateOpen="<title>Standard Times Tribune | Print This Version</title>\n<link href=\"../css/global.css\" rel=\"stylesheet\" type=\"text/css\">\n<style type=\"text/css\">\n</style>\n<body link=#CC0000 vlink=#CC0000><center>\n<!--RED STRIPE-->\n<table cellpadding=1 cellspacing=1 width=100% height=1><tr><td width=100% bgcolor=#CC0000><img src=../images/red.gif width=200 height=1></td></tr></table>\n<!--/RED STRIPE-->\n<!--LOGO TABLE-->\n<table width=100% cellspacing=0 cellpadding=4 bgcolor=#000066 height=40><tr><td align=center width=*><img src=../images/standardTimes2.gif></td></tr></table>\n<!--/LOGO TABLE-->\n<!--RED STRIPE-->\n<table cellpadding=1 cellspacing=1 width=100% height=1><tr><td width=100% bgcolor=#CC0000><img src=../images/red.gif width=200 height=1></td></tr></table>\n<!--/RED STRIPE-->\n<!--PREVIEW CONTENTS-->\n<p><table width=90%><tr><td>\n\n";
	var boilerPlateClose="</td></tr></table>\n<!--/PREVIEW CONTENTS-->\n<!--COPYRIGHT-->\n<p align=center><span class=copyRight>&copy; 2003 Standard Times Tribune Ltd.</span>\n<!--/COPYRIGHT-->";

/*	PRINT ITEM: POP PRINT */	

function PopPrint(){
	var printSource=boilerPlateOpen;
	printSource+=Return_Item_Source();
	printSource+=boilerPlateClose;
	printWindow=window.open("","","width=500,height=450,scrollbars=auto,menubar=yes,resizable=yes");
	printWindow.document.write(printSource);
	printWindow.document.close();
	}

/*	PRINT ITEM: RETURN SOURCE */	

function Return_Item_Source() {
	theForm=document.itemSource;
	var itemSource="<p align=center><table width=95%><tr><td>\n";
	itemSource+="<span class=headline>"+theForm.Headline.value+"</span>\n";
	itemSource+="<span class=byline>"+theForm.Byline.value+"</span>\n";
	itemSource+="<span class=date>"+theForm.Date.value+"</span>\n";
	itemSource+="<span class=heading>"+theForm.Heading.value+"</span>\n";
	itemSource+="<span class=mainBody>"+theForm.mainBody.value+"</span>\n";
	itemSource+="</td></tr></table>\n";
	return itemSource;

	}

/*	CLEAR DEFAULT TEXT */	

function ClearDefault(defaultText,s) {
	if(s.value==defaultText) { s.value="";}
	}

/*	MAKE SCORECARD */		

function Make_ScoreCard(nameIn) {
	if(confirm('Create A Scorecard?')) {
		PopTools('week27/scorecard.html');
		}
	}
