﻿function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//ddsmoothmenu.init({
//    mainmenuid: "smoothmenu1", //menu DIV id
//    orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
//    classname: 'ddsmoothmenu', //class added to menu's outer DIV
//    //customtheme: ["#C7C2A5", "#C7C2A5"],
//    contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
//})

function clearForm(form_obj) { 
    var elements = form_obj.elements;
    form_obj.reset();

    for(i=0; i<elements.length; i++) {     
        field_type = elements[i].type.toLowerCase();

        switch(field_type) { 
        case "text":
        case "password":
        case "textarea":
              //case "hidden": -- dot net requirement
                    elements[i].value = "";
                    break;       
        case "radio":
        case "checkbox":
                    if (elements[i].checked)
                        elements[i].checked = false;                
                    break;
        case "select-one":
        case "select-multi":
                    elements[i].selectedIndex = -1;
                    break;
        default:
                    break;
        }
    }
}

//add to Favourites
function bookmarksite(title, url)
{
	if (document.all)
		window.external.AddFavorite(url, title);
	else 
		if (window.sidebar)
			window.sidebar.addPanel(title, url, "");
}

