//文件名: prompt.js
//功能说明: 提示/确认跳转


//函数名称: alert提示跳转函数
//参数说明: altmsg 提示内容换行用"\n"
//			gotourl 跳转的地址可为空
//			method 选择提示模式 1.默认模式 , 2.返回上一页, 3.关闭窗口
function alertshow(altmsg, gotourl, method){
	alert(altmsg);
		switch (method){
		case 2:
			history.back();
		case 3:
			window.close();
		default :
			location.href = gotourl;
		}
}

//函数名称: confirm确认跳转函数
//参数说明: altmsg 提示内容
//			gotourl 跳转的地址
function confirmshow(altmsg, gotourl){
	if (confirm(altmsg)){
		location.href = gotourl;
	}
}