function bing(box) {
	if (box.value == "type words and press enter") {
		box.value = "";
	}
}
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for (var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function eraseCookie(name) {
	createCookie(name,"",-1);
}
function osandbrowserCheck() {
	if (navigator.userAgent.indexOf('Linux') != -1) {
		var toalert = 'Warning: Linux OS found. Please refer to the Help - System Requirements page for more details about support for Linux.  ';
		var towrite = 'Warning: Linux OS found. Although you can still buy your sheet music online we currently cannot support printing in Linux using Sibelius Scorch. Please refer to the <a href="http://www.dots4strings.com/acatalog/system_reqs.html">System Requirements</a> page for more details about support for Linux. <br/>';
	}
	else {
		var toalert = '';
		var towrite = '';
	}
	if ((navigator.userAgent.indexOf('IE') != -1) || (navigator.userAgent.indexOf('Firefox') != -1)) {
	}
	else {
		toalert += 'Warning: possible incompatible browser. Please refer to the Help - System Requirements page for a list of supported browsers and versions. ';
		towrite += 'Warning: possible incompatible browser. Not all browsers work with the Sibelius Scorch plugin. Please refer to the <a href="http://www.dots4strings.com/acatalog/system_reqs.html">System Requirements</a> page for a list of supported browsers and versions. ';
	}
	if (readCookie("osandbrowsercheck")) {
	}
	else {
		createCookie('osandbrowsercheck',1,365);
		if (toalert != "") {
			alert(toalert);
		}
		if (towrite != "") {
			document.write(towrite);
		}
	}
}
function showrelated(related) {
	for ( i=0; i < related.length; i += 2 )
		{
		document.write('&#x2022;&nbsp;<a href="http://www.dots4strings.com/acatalog/' + related[i] + '" title="' + related[i+1] + '">' + related[i+1] + '</a><br />');
		}
}
function escramble(address) {
        var a,b,c,d;
        a='<a href=\"mai';
		b='';
		b+=address;
        c='\">';
        a+='lto:';
        b+='@dots';
        d='</a>';
        b+='4strings.com';
        document.write(a+b+c+b+d);
}
