function rss_Expand(idTag, warnText) {
	if (document.getElementById('div'+idTag).style.getPropertyValue) {
		direction = document.getElementById('div'+idTag).style.getPropertyValue("display");
	} else {
		direction = document.getElementById('div'+idTag).style.display;
	}
	if (direction=='block') {
		direction = 'none';
	} else {
		if (warnText == '' || confirm(warnText)) {
			direction='block';
		}
	}
	document.getElementById('div'+idTag).style.display = direction;
}



function rss_submitForm(mfrm) {
	var me = mfrm.elements;

        var url = me['rss'].value;
        var match = youtubeRE.exec(url);
        if (match != null) {
          me['rsstype'].value = "youtube";
          return true;
        }
        match = gvRE.exec(url);
        if (match != null) {
          me['rsstype'].value = "google";
          return true;
        }
        
        alert( "Please enter a valid  YouTube url.");
        return false;
}
