function addQuery(){
    	var o = document.links;
    	var query = document.location.search;
		//document.write("My Test HERE");
		// if the URL passes any other query data the code should not execute
			if (query == "?ml=en" || query == "?ml"){
		
		  	for(var i=0;i<o.length;i++){
						var myHREF = o[i].href;
						//document.write(o[i].item(i).tagName);
													
						if (myHREF.split("?").length > 1) {
	    
						   o[i].href;
								
						// otherwise, add the query to the end of the URL	
						} else {
						
						if ((o[i].getAttribute('name') == "MainLangID")  || (o[i].getAttribute('name') == "NoLinkID"))  {
							// do nothing
							
						} else {
						
							o[i].href += query;
							
						}
					}		
		  	     }
			  }
	      }
		window.onload = addQuery;