
if (typeof Poly9 == 'undefined')
 var Poly9 = {};

Poly9.URLParser = function(url) {
 this._fields = {'Username' : 4, 'Password' : 5, 'Port' : 7, 'Protocol' : 2, 'Host' : 6, 'Pathname' : 8, 'URL' : 0, 'Querystring' : 9, 'Fragment' : 10};
 this._values = {};
 this._regex = null;
 this.version = 0.1;
 this._regex = /^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/;
 for(var f in this._fields)
  this['get' + f] = this._makeGetter(f);
 if (typeof url != 'undefined')
  this._parse(url);
}
 
Poly9.URLParser.prototype.setURL = function(url) {
  this._parse(url);
}

Poly9.URLParser.prototype._initValues = function() {
   for(var f in this._fields)
   this._values[f] = '';
}

Poly9.URLParser.prototype._parse = function(url) {
  this._initValues();
  var r = this._regex.exec(url);
  if (!r) throw "DPURLParser::_parse -> Invalid URL"
  for(var f in this._fields) if (typeof r[this._fields[f]] != 'undefined')
   this._values[f] = r[this._fields[f]];
}

Poly9.URLParser.prototype._makeGetter = function(field) {
 return function() {
  return this._values[field];
 }
}



function show_f(show_) 
{

var news= document.getElementById('news').style;
var newsalias = document.getElementById('newsalias').style;
var mcontent= document.getElementById('mcontent').style;
var malias = document.getElementById('malias').style;
var analias = document.getElementById('analias').style;
var man = document.getElementById('man').style;
var keywords = document.getElementById('keywords').style;
var ar = document.getElementById('ar').style;
var articles = document.getElementById('articles').style;

if (show_=='news')
{

news.display='';
newsalias.display='';
mcontent.display='none';
malias.display='none';
analias.display='none';
man.display='none';
keywords.display='';
ar.display='none';
articles.display='none';
}


else if (show_=='content')
{
news.display='none';
newsalias.display='none';
mcontent.display='';
malias.display='';
analias.display='none';
man.display='none';
keywords.display='';
ar.display='none';
articles.display='none';
}

else if (show_=='an')
{
news.display='none';
newsalias.display='none';
mcontent.display='none';
malias.display='none';
analias.display='';
man.display='';
keywords.display='none';
ar.display='none';
articles.display='none';
}

else if (show_=='articles_')
{
news.display='none';
newsalias.display='none';
mcontent.display='none';
malias.display='none';
analias.display='none';
man.display='none';
keywords.display='';
ar.display='';
articles.display='';
}



else {
news.display='none';
newsalias.display='none';
mcontent.display='';
malias.display='';
analias.display='none';
man.display='none';
keywords.display='';
ar.display='none';
articles.display='none';
}



}


function newf(){

var num=1;

document.getElementById('files').innerHTML="";

for ( var i=1; i<num; i++ )
{
document.getElementById('files').innerHTML+="$img"+i+"= <input type=\"file\" name=\"img" +i+ "\" size=\"35\"><br>";
}

	return false;
}






function days(){

if (document.getElementById('sel')){

if (document.getElementById('sel').value=='bud')
{
document.getElementById('col').style.display='';
}

else{
document.getElementById('col').style.display='none';

}

}}




function init() {
    var item = item_src = null;
    for (var i = 0; (item = document.getElementsByTagName("input").item(i)); i++)
		{
   


	if (item.addEventListener) 
		{
		item.addEventListener("mousemove", days, false);
		item.addEventListener("keyup", days, false);
		 item.addEventListener("change",days, false);

	 }

else  if (item.attachEvent) 
	{
		item.attachEvent("onmousemove", days);
		 item.attachEvent("onkeyup",days);
		 item.attachEvent("onchange",days);
}


    }

}








var root = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null;
if (root){
	
	if (root.addEventListener) {
		root.addEventListener("load",init,false);
}
	
	else if (root.attachEvent) { 
		root.attachEvent("onload", init);
}

}


