<!--

// Get browser information

var if_userAgent = navigator.userAgent.toLowerCase();
var opera = (if_userAgent.indexOf('opera') != -1); // is opera
var ns4 = (document.layers) ? true : false; // is netscape 4
var ie4 = (document.all && !document.getElementById) ? true : false; // is IE 4
var ie5 = (document.all && document.getElementById) ? true : false; // is IE 5+
var ns6 = (!document.all && document.getElementById) ? true : false; // is netscape 6

/* ----------------------------------------------------------- */
// Forum logout confirmation
/* ----------------------------------------------------------- */

function ic_logOut() {

	if (ie4 || ie5 || opera || ns6)	{
	
		ht = document.getElementsByTagName("body");
		ht[0].style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=55)";
		if (confirm('Are you sure you wish to logout?\n\nWhen you logout if you have choosen\nautomated login your cookie will be deleted.\n\nYou will need to login again to access My.InstantASP\n\nClick OK to confirm this action...'))
		{return true;}
		else
		{ht[0].style.filter = ""; return false;}
	}
	else {
		if (confirm('Are you sure you wish to logout?\n\nWhen you logout if you have choosen\nautomated login your cookie will be deleted.\n\nYou will need to login again to access My.InstantASP.\n\nClick OK to confirm this action...'))
		{return true;}
		else
		{return false;}
	}
	
}

/* ----------------------------------------------------------- */
// Confirm ticket should be reopened
/* ----------------------------------------------------------- */

function myInstantASP_ReopenTicket(intTicketID) {

 var bolAlert = confirm("Are you sure you wish to re-open this ticket?\n\nTo assist us please provide your reasons on\nthe following page for reopening this support ticket.");
 
 if (bolAlert)
 { 
   location = "ViewTicket.aspx?id=" + intTicketID + "&ReOpen=1";
 } 


}
//-->
