function OpenDialogForDisplay(TargetURL, TargetQueryString, DialogStyle, Width)
{
	var ScreenWidth=screen.width;
	var ScreenHeight=screen.availHeight;
	var FrameURL = "/C10A_TourSell/C10A_Frame.aspx";
	var QueryString = "?TargetURL=" + TargetURL + "&" + TargetQueryString;

	switch ( DialogStyle )
	{
		case 1 :
			window.showModalDialog(FrameURL + QueryString, document, 'dialogWidth:' + Width + 'px; dialogHeight:' + (ScreenHeight-0) + 'px; help:0; dialogTop:0px; dialogLeft:0px; status:1; resizable:0; center:1');			
			break;
		case 2 :
			window.showModalDialog(FrameURL + QueryString, document, 'dialogWidth:' + Width + 'px; dialogHeight:' + (ScreenHeight-0) + 'px; help:0; dialogTop:0px; dialogLeft:' + (ScreenWidth - Width) + 'px; status:1; resizable:0; center:1');			
			break;
	}
}

function OpenDialogForAcceptValue(TargetURL, TargetQueryString, DialogStyle, Width)
{
	var myAcceptValue;
	var ScreenWidth=screen.width;
	var ScreenHeight=screen.availHeight;
	var FrameURL = "/C10A_TourSell/C10A_Frame.aspx";
	var QueryString = "?TargetURL=" + TargetURL + "&" + TargetQueryString;

	switch ( DialogStyle )
	{
		case 1 :
			myAcceptValue = window.showModalDialog(FrameURL + QueryString, document, 'dialogWidth:' + Width + 'px; dialogHeight:' + (ScreenHeight-0) + 'px; help:0; dialogTop:0px; dialogLeft:0px; status:1; resizable:0; center:1');			
			break;
		case 2 :
			myAcceptValue = window.showModalDialog(FrameURL + QueryString, document, 'dialogWidth:' + Width + 'px; dialogHeight:' + (ScreenHeight-0) + 'px; help:0; dialogTop:0px; dialogLeft:' + (ScreenWidth - Width) + 'px; status:1; resizable:0; center:1');			
			break;
	}
	
	return myAcceptValue;
}