function openParent(str){

	if(window.opener){
		window.opener.location.href=str;
		window.opener.focus();
	} else {
		window.open(str);
	}

};
