<!--

function openWindow(winUrl, winName, winProperties){
	/* function desc
	 * 
	 * @param	winUrl			string	the url of the window to open
	 * @param	winName			string
	 * @param	winProperties	string	width, height etc. there are default properties
	 * 
	 * @returns	true if success, false if fail
	 */

	try {
		openedWin = open(winUrl, winName, winProperties);
		openedWin.focus();
		// usally if we are here, the window was successfully opened but you can't count on it
		return true;
	} 
	catch (err) {
		return false;
	}
}


function hideWindowStatus(str){
	/* hides the information displayed in the status bar
	 * Works only on IE
	 *
	 * @param	str	string	the string to replace the status bar
	 * @return
	 */

	setInterval("window.status='" + str + "'", 2);
	
	return true;
}


function frameBuster(){
	/* prevents iframe srcing & frame srcing
	 * 
	 * @param	url	string	desc
	 * @return
	 */
	
	try
	{
		if(window.top.location!=window.location)
		{
			window.top.location.href=window.document.location;
		}
		return true;
	}
	catch(err)
	{
		return err;
	}
}



function maxWindow(){
	/* resize window to full screen
	 *
	 * Works in: IE, FireFox 3.5.3, Safari 4.0.4
	 * 
	 * @returns	true if success, false if fail
	 */

	try
	{
		self.moveTo(0,0);
		self.resizeTo(screen.availWidth,screen.availHeight);
		return true;
	}catch(err)
	{
		return err;
	}
}



function showTodaysDate(){
	var mydate=new Date()
	var month=mydate.getMonth()
	var daym=mydate.getDate()
	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
	document.write(""+mydate.getDate()+" "+montharray[mydate.getMonth()]+" "+mydate.getYear()+ "");

	return true;
}





// -->
