function stringTrim(strToTrim) {
	var tmp_str = new String(strToTrim);
        return(tmp_str.replace(/^\s+|\s+$/g, ''));
}

function Popup(url){
	window.open(
	url,
	'window',
	'width=434, height=500, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}

function wopenr(url){
	window.open(url, 'ww', 'width=800, height=600, resizable=yes, scrollbars=yes');
}
function wopen(url){
	window.open(url, 'ww', 'width=550, height=450, location=no');
}
function wopen2(url){
	window.open(url, 'ww', 'width=550, height=450, location=no,resizable=yes,scrollbars=no');
}
function wopen1(url){
	w = window.open(url, 'ww', 'location=yes, resizable=yes, scrollbars=yes, toolbar=yes, menubar=yes, status=yes');
	w.resizeTo(w.screen.availWidth, w.screen.availHeight);
	w.moveTo(0.0);
}

function Popup2(url,width,height,target,status){
        if(!target) target = '_blank';
        if(!width)  width  = '430';
        if(!height) height = '250';
        if(!status) status = 'no';

        window.open(
                url,
                target,
                "width="+width+", height="+height+", scrollbars=yes, status="+status+", resizable=yes"
        );
}