//
function changeParentUrl(url)
{
	window.parent.location = url;
}
//
function changeUrl(url)
{
	window.location = url;
}
//
function changeTitle(tit)
{
	document.parentWindow.parent.document.title = tit;
}
function hidestatus(){
window.status='';
return true;
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT | Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);

document.onmouseover=hidestatus;
document.onmouseout=hidestatus; 
document.onmousemove=hidestatus;
document.onmouseup=hidestatus;
document.onmousedown =hidestatus
/*function ReturnFromDynamicErrorPage()
	{
		var query=document.URLUnencoded;
		query=query.split('?');
		query=query[1];
		
		query=query.split('&');
		var couterInformation=query[0]+"&"+query[1]+"&"+query[2];
		var errorNum=query[3].split('=');
		errorNum=errorNum[1];
		if(errorNum=="6033")
		{
		 
		window.location.replace("https://"+window.location.host+"/Counter/secureFolder/Payment.aspx?"+couterInformation+"&paytype=card");
		}
	}
*/
function mask(div_id)
{
    //Get the screen height and width
    var maskHeight = $(document).height();
    var maskWidth = $(window).width();
	var popup_div = $(div_id);
	var mask_div = $('#mask');
    //Set height and width to mask to fill up the whole screen
    mask_div.css({'width':maskWidth,'height':maskHeight});
    mask_div.css("opacity", "0.5").css("filter", "alpha(opacity=60)");
    
    //transition effect
	mask_div.show();
    //Get the window height and width
    var winH = $(window).height();
    var winW = $(window).width();
           
    //Set the popup window to center
    popup_div.css('top',  winH/2-$(div_id).height()/2);
    popup_div.css('left', winW/2-$(div_id).width()/2);
 
    //transition effect
    popup_div.show();
}
