/*function replaceKdLocation(content){
	alert("123");
	if (isVariable('CONFIG_URL_EXTERN_STEP2') && CONFIG_URL_EXTERN_STEP2.length > 0) {
		window.parent.parent.location.replace(CONFIG_URL_EXTERN_STEP2);
		
	}
	else {
		if (isVariable('CONFIG_EXTERN_STEP2_PARENT') && CONFIG_EXTERN_STEP2_PARENT) 
			window.parent.parent.location.replace(content, 'PopupWindow', 'channelmode=no , dependent=no,location=no ,status=no ,menubar=no ,directories=no , resizable=no ,toolbar=no ,scrollbars=no ,width=685,height=555');
		else 
			window.open(content, 'PopupWindow', 'channelmode=no , dependent=no,location=no ,status=no ,menubar=no ,directories=no , resizable=no ,toolbar=no ,scrollbars=no ,width=685,height=555');
	}
}



function replaceKdSingleLocation(content) {
	
    if (isVariable('CONFIG_URL_EXTERN_STEP2') && CONFIG_URL_EXTERN_STEP2.length > 0) {
    	window.parent.parent.location.replace(CONFIG_URL_EXTERN_STEP2);
    }else {
    	if (CONFIG_EXTERN_STEP2_PARENT) {
            
    	   window.parent.parent.location.replace(content,'PopupWindow',  'channelmode=no , dependent=no,location=no ,status=no ,menubar=no ,directories=no , resizable=no ,toolbar=no ,scrollbars=no ,width=685,height=555');
       }else
            window.location.replace(content);
    }
}*/


function replaceKdLocation(content){
	if (isVariable('CONFIG_URL_EXTERN_STEP2') && CONFIG_URL_EXTERN_STEP2.length > 0) {
		window.parent.parent.location.replace(CONFIG_URL_EXTERN_STEP2);
		
	}
	else {
		if (isVariable('CONFIG_EXTERN_STEP2_PARENT') && CONFIG_EXTERN_STEP2_PARENT) 
			window.parent.parent.location.replace(content, 'PopupWindow', 'channelmode=no , dependent=no,location=no ,status=no ,menubar=no ,directories=no , resizable=no ,toolbar=no ,scrollbars=no ,width=685,height=555');
		else 
			window.open(content, 'PopupWindow', 'channelmode=no , dependent=no,location=no ,status=no ,menubar=no ,directories=no , resizable=no ,toolbar=no ,scrollbars=no ,width=685,height=555');
	}
}



function replaceKdSingleLocation(content) {
	if (isVariable('CONFIG_URL_EXTERN_STEP2') && CONFIG_URL_EXTERN_STEP2.length > 0) {
		window.parent.parent.location.replace(CONFIG_URL_EXTERN_STEP2);
		
	}else {
	   if (isVariable('CONFIG_EXTERN_STEP2_PARENT') && CONFIG_EXTERN_STEP2_PARENT) {
		   window.location.replace(content);
       }else {
           window.open(content, 'PopupWindow', 'channelmode=no , dependent=no,location=no ,status=no ,menubar=no ,directories=no , resizable=no ,toolbar=no ,scrollbars=no ,width=685,height=555');
       }
		
	}
}

