function simpleTrack(_tag,_folder){
	//alert('track called:'+_tag+':folder:'+_folder)
	// if(_folder == null){
	 //_hbflash(_tag,'n','n','n');
	var googletrack = _tag;
	// }else{
	//	 _hbPageView(_tag, "/" +_folder);
	//	 var googletrack = "/" +_folder + "/" + _tag;	
	// }
		
	setTimeout("urchinTracker('" + googletrack + "')", 1000);
}

function doPopup (sUrl, nWidth, nHeight, sWindowName) {
	window.open(sUrl,'mrmen','width=' + nWidth + ',height=' + nHeight + ',scrollbars=1,resizable=1');
}

function mailtoAndTrack (sID, sBody, sSubject) {
	
	// and the opening of the mail window
	document.location = "mailto:?body=" + sBody + "&subject=" + sSubject;
	simpleTrack(sID);
}

function popUpAndTrackNoBars(sID, sUrl, nWidth, nHeight, sWindowName) {
	window.open(sUrl,sWindowName,'width=' + nWidth + ',height=' + nHeight + ',scrollbars=0,resizable=0');
	setTimeout('simpleTrack(\''+sID+'\')',2000);
}

function popUpAndTrack (sID, sUrl, nWidth, nHeight, sWindowName) {
	doPopup(sUrl, nWidth ,nHeight , sWindowName);
	setTimeout('simpleTrack(\''+sID+'\')',2000);
}

function delayedTrack(_tag,_folder){
	setTimeout('simpleTrack("'+_tag+'","'+_folder+'")',2000);
}

function changeIframe(ns){

	document.getElementById('convtrackingiframe').src = "conv_tracking/" + ns + ".html";
}