// myprintln.js
function myprintln(s) { document.writeln(s); }

function OpenWin(url,w,h,r,s,t,l,left,top) {

	var width = (!w || typeof w != 'number')?600:w;

	var height = (!h || typeof h != 'number')?400:h;

	for (i=0;i<OpenWin.arguments.length;++i) {

	var arg = OpenWin.arguments[i];

		if (arg == 'resizable') {

			var resizable = 'yes';

		} else if (arg == 'scrollbars') {

			var scrollbars = 'yes';

		} else if (arg == 'toolbar') {

			var toolbar = 'yes';

		} else if (arg == 'location') {

			var location = 'yes';

		} else if (arg.toString().indexOf('left=') != -1) {

			var x = arg.substr(5);

			left = (document.all)?'left=':'screenX=';

		} else if (arg.toString().indexOf('top=') != -1) {

			var y = arg.substr(4);

			top = (document.all)?'top=':'screenY=';

		}

	}

	

	NewWin=window.open (url,"","width=" + width + ",height=" + height + ",resizable=" + resizable + ",scrollbars=" + scrollbars + ",toolbar=" + toolbar + ",location=" + location + "," + left + x + "," + top + y);

}

function myAddress() {

    var anchor = parent.document.getElementById("abcid");

    if (anchor.value == null || anchor.value == 'undefined') 

    {

        window.parent.location=anchor.href;

    } else {

        window.parent.location=anchor.value;

    }

}



function myTest() {

var anchor = parent.document.getElementById("absid");

if (anchor.value == null || anchor.value == 'undefined') 

{

    window.parent.location=anchor.href;

} else {

    window.parent.location=anchor.value;

}

}

