function setData(){
	with(document.cscform){
			var p = window.opener.document;
			for(i=0;i<elements.length;i++){
				var names = elements[i].name;
				x= p.getElementsByName(names)[0].value;
				elements[i].value = x;	
			}
	}
}

// for set value of text \\
function getData(names){
	var p = window.opener.document;
	with(document.cscform){
		x= p.getElementsByName(names)[0].value;
	}
	return document.write(x);
}

// for all check box component \\
function setValueBox(hid,box){
	if(hid.value=='1'){
			box.checked = true;
	}
}

function setAllBox(){	
	var p = window.opener.document;
	with(document.cscform){
			setValueBox(p.getElementsByName('__comskill1')[0],comskill1);
			setValueBox(p.getElementsByName('__comskill2')[0],comskill2);
			setValueBox(p.getElementsByName('__comskill3')[0],comskill3);
			setValueBox(p.getElementsByName('__comskill4')[0],comskill4);
			setValueBox(p.getElementsByName('__comskill5')[0],comskill5);
			setValueBox(p.getElementsByName('__comskill6')[0],comskill6);		
			setValueBox(p.getElementsByName('__cust_detail1')[0],cust_detail1);
			setValueBox(p.getElementsByName('__cust_detail2')[0],cust_detail2);	
			setValueBox(p.getElementsByName('__cust_detail3')[0],cust_detail3);
			setValueBox(p.getElementsByName('__news_yourself')[0],news_yourself);
			setValueBox(p.getElementsByName('__news_web')[0],news_web);
			setValueBox(p.getElementsByName('__news_branch')[0],news_branch);
			setValueBox(p.getElementsByName('__news_paper')[0],news_paper);
			setValueBox(p.getElementsByName('__news_jobfair')[0],news_jobfair);
			setValueBox(p.getElementsByName('__news_person')[0],news_person);	
	}
}

// for select option  \\
function setSelectOp(obj){
	return document.write(obj.options[obj.selectedIndex].text);
}