function update_userschool(id){
window.open("user_openwindow/update_userschool.php?id="+id,"","width=530,height=400,scrollbars=yes,resizable=yes");
}

function add_userschool(){
window.open("user_openwindow/add_userschool.php","","width=530,height=400,scrollbars=yes,resizable=yes");
}

function update_work_exp(id,flag){
window.open("user_openwindow/work_exp.php?flag="+flag+"&id="+id,"","width=530,height=700,scrollbars=yes,resizable=yes");
}

//function train_exp(id,flag){
//window.open("user_openwindow/train_exp.php?flag="+flag+"&id="+id,"","width=530,height=300,scrollbars=yes,resizable=yes");
//}

function train_exp(id,flag)
{
	mywindow = window.open("user_openwindow/train_exp_ajax.php?id="+id+"&flag="+flag,"stream", "height=300, width=530,scrollbars=1");
	mywindow.moveTo(300,200);
}


function showinfolist(divid,showtype1)
{
	var showtype = showtype1;
	new Ajax.Request(
		'user_openwindow/train_exp_return.php',
		{queue: {position: 'end', scope: 'command'},
			method: 'post',
			postBody: 'showtype='+showtype,
			onComplete: function(response)
				{
					var str = response.responseText;
					//var strArray=new Array();
					//strArray = tmp.split("&&&");
					//alert(str);
                    $(divid).innerHTML = str;
				}
		}
	);
}

///

function search_work(id,flag){
window.open("user_openwindow/search.php?flag="+flag+"&id="+id,"","width=650,height=600,scrollbars=yes,resizable=yes");
}

function update_job_exp(id,flag){
	mywindow = window.open("cor_openwindow/addnewjob.php?flag="+flag+"&ID="+id,"","width=530,height=700,scrollbars=yes,resizable=yes");
	mywindow.moveTo(300,200);
}


function look_job_exp(id){
	//mywindow = window.open("cor_openwindow/look_job.php?ID="+id,"","width=530,height=500,scrollbars=yes,resizable=yes");
	mywindow = window.open("user_show_job.php?jobstr="+id,"","width=600,height=500,scrollbars=yes,resizable=yes");
	mywindow.moveTo(300,200);
}

function look_job_exp1(id,stype){
	//mywindow = window.open("cor_openwindow/look_job.php?ID="+id,"","width=530,height=500,scrollbars=yes,resizable=yes");
	mywindow = window.open("user_show_job.php?jobstr="+id+"&stype="+stype,"","width=600,height=500,scrollbars=yes,resizable=yes");
	mywindow.moveTo(300,200);
}

function look_info(id){
	//mywindow = window.open("cor_openwindow/look_job.php?ID="+id,"","width=530,height=500,scrollbars=yes,resizable=yes");
	mywindow = window.open("showinfo.php?titleid="+id,"","width=530,height=500,scrollbars=yes,resizable=yes");
	mywindow.moveTo(300,200);
}
function openwindow(opentype,fieldtype){
	if(opentype=='industry'){
		mywindow = window.open("cor_openwindow/open_industry.php?fieldtype="+fieldtype,"","width=530,height=400,scrollbars=yes,resizable=yes");
	}else if(opentype=='area'){
		mywindow = window.open("cor_openwindow/open_area.php?fieldtype="+fieldtype,"","width=530,height=400,scrollbars=yes,resizable=yes");
	}
	mywindow.moveTo(300,200);
	
}

function delajaxconfirm(url)
{
	if(confirm("你确定要删除吗?"))   
	{   
	window.open(url);   
	}  
}

function delconfirm(url)
{
	if(confirm("你确定要删除吗?"))   
	{   
	window.location=url;   
	}  
}

