/************************************************************/
function CloseMe(){
    //Desc: Closes the window.
    
    self.close();}//end CloseMe
/************************************************************/
function GoBack(){
    //Desc: Navigates one step back in the history.

    history.back();
}//end GoBack
/************************************************************/
function GoToTop(){
    //Desc: Scrolls the window to the top.
    
    window.scroll(0,0);
    window.focus();}//end GotoTop
/************************************************************/
function PopUp(URL, Width, Height, EnableResize){
	//Desc: Opens a popUp window

	//Locals
	var winProps;
	var objWin;
	var resizeYesNo = 'no'; //Standarvärdet för att användaren skall få anpassa fönsterstorlek

	//Check if explicit width
	if(Width == null || Width <= 0)
		Width = 550;

	//Check if explicit height
	if(Height == null || Height <= 0)
		Height = 720;

	//Check if resizing should be allowed
	if(EnableResize == false)
		resizeYesNo = 'no';
	else
		resizeYesNo = 'yes';

	//Build string with properties
	winProps = 'toolbar=no,menubar=no,scrollbars=yes,resizable=' + resizeYesNo;

	//Open a new window and make use of string with win.properties
	objWin = window.open(URL, 'PopUp', winProps);
	
	try	{//This code doesn't work in IE, when accessing a site outside our project. F.Ex. Google
	    objWin.resizeTo(Width,Height);
	    objWin.moveTo(((screen.width - Width)/2),((screen.height - Height)/2));   
	}
	catch(ex){
	}//end try
	
	objWin.window.opener = null;
	objWin.focus();
	objWin = null;
	}//end PopUp
/************************************************************/
function ImagePopUp(URL, Width, Height, EnableResize){
	//Desc: Opens a popUp window

	//Locals
	var winProps;
	var objWin;
	var resizeYesNo = 'no'; //Standarvärdet för att användaren skall få anpassa fönsterstorlek

	//Check if explicit width
	if(Width == null || Width <= 0)
		Width = 500;

	//Check if explicit height
	if(Height == null || Height <= 0)
		Height = 500;

	//Check if resizing should be allowed
	if(EnableResize == false)
		resizeYesNo = 'no';
	else
		resizeYesNo = 'yes';

	//Build string with properties
	winProps = 'toolbar=no,menubar=no,scrollbars=yes,resizable=' + resizeYesNo;

	//Open a new window and make use of string with win.properties
	objWin = window.open(URL, 'PopUp', winProps);
	
	try	{//This code doesn't work in IE, when accessing a site outside our project. F.Ex. Google
	    objWin.resizeTo(Width,Height);
	    objWin.moveTo(((screen.width - Width)/2),((screen.height - Height)/2));   
	}
	catch(ex){
	}//end try
	
	objWin.window.opener = null;
	objWin.focus();
	objWin = null;
	}//end PopUp
	
	
function POPWindow3(ImageURL, ProductName)
{
	Fonster3=open("","DisplayWindow","toolbar=no,height=500,width=500,directories=no,resizable=yes,menubar=no");
	Fonster3.document.write("<HTML><HEAD><TITLE>" + ProductName + "</TITLE></HEAD>");
	Fonster3.document.write("<BODY BGCOLOR='FFFFFF'>");
	Fonster3.document.write("<IMG SRC=" + ImageURL + "><P>");
	Fonster3.document.write("</BODY></HTML>");
	Fonster3.document.close();
	Fonster3.focus();
}


/************************************************************/
function PopUpHelp(URL, Width, Height){
	//Desc: Opens a popUp window

	//Locals
	var winProps;
	var objWin;
	//var resizeYesNo = 'no'; //Standarvärdet för att användaren skall få anpassa fönsterstorlek

	//Check if explicit width
	if(Width == null || Width <= 0)
		Width = 300;

	//Check if explicit height
	if(Height == null || Height <= 0)
		Height = 300;

	//Check if resizing should be allowed
	/*if(EnableResize == false)
		resizeYesNo = 'no';
	else
		resizeYesNo = 'yes';*/

	//Build string with properties
	winProps = 'toolbar=no,menubar=no,scrollbars=yes,resizable=no'; /*resizeYesNo*/

	//Open a new window and make use of string with win.properties
	objWin = window.open(URL, 'PopUp', winProps);
	
	try	{//This code doesn't work in IE, when accessing a site outside our project. F.Ex. Google
	    objWin.resizeTo(Width,Height);
	    objWin.moveTo(((screen.width - Width)/2),((screen.height - Height)/2));   
	}
	catch(ex){
	}//end try
	
	objWin.window.opener = null;
	objWin.focus();
	objWin = null;
	}//end PopUp
/************************************************************/
function PopUpNotifyAFriend(URL, Width, Height){
	//Desc: Opens a popUp window

	//Locals
	var winProps;
	var objWin;
	//var resizeYesNo = 'no'; //Standarvärdet för att användaren skall få anpassa fönsterstorlek

	//Check if explicit width
	if(Width == null || Width <= 0)
		Width = 435;

	//Check if explicit height
	if(Height == null || Height <= 0)
		Height = 750;

	//Check if resizing should be allowed
	/*if(EnableResize == false)
		resizeYesNo = 'no';
	else
		resizeYesNo = 'yes';*/

	//Build string with properties
	winProps = 'toolbar=no,menubar=no,scrollbars=yes,resizable=no'; /*resizeYesNo*/

	//Open a new window and make use of string with win.properties
	objWin = window.open(URL, 'PopUp', winProps);
	
	try	{//This code doesn't work in IE, when accessing a site outside our project. F.Ex. Google
	    objWin.resizeTo(Width,Height);
	    objWin.moveTo(((screen.width - Width)/2),((screen.height - Height)/2));   
	}
	catch(ex){
	}//end try
	
	objWin.window.opener = null;
	objWin.focus();
	objWin = null;
	}//end PopUp
/************************************************************/
function PopUpWriteReview(URL, Width, Height){
	//Desc: Opens a popUp window

	//Locals
	var winProps;
	var objWin;
	//var resizeYesNo = 'no'; //Standarvärdet för att användaren skall få anpassa fönsterstorlek

	//Check if explicit width
	if(Width == null || Width <= 0)
		Width = 435;

	//Check if explicit height
	if(Height == null || Height <= 0)
		Height = 750;

	//Check if resizing should be allowed
	/*if(EnableResize == false)
		resizeYesNo = 'no';
	else
		resizeYesNo = 'yes';*/

	//Build string with properties
	winProps = 'toolbar=no,menubar=no,scrollbars=yes,resizable=no'; /*resizeYesNo*/

	//Open a new window and make use of string with win.properties
	objWin = window.open(URL, 'PopUp', winProps);
	
	try	{//This code doesn't work in IE, when accessing a site outside our project. F.Ex. Google
	    objWin.resizeTo(Width,Height);
	    objWin.moveTo(((screen.width - Width)/2),((screen.height - Height)/2));   
	}
	catch(ex){
	}//end try
	
	objWin.window.opener = null;
	objWin.focus();
	objWin = null;
	}//end PopUp
/************************************************************/
function PrintMe(){
    //Desc: Prints the window.
    
    self.print();}//end PrintMe
/************************************************************/
function ReloadMe(){
    //Desc: Reloads the window.
    
    self.location.reload();}//end ReloadMe
/************************************************************/